From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LqSeS-0003Ih-MT for qemu-devel@nongnu.org; Sun, 05 Apr 2009 09:44:44 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LqSeN-0003E8-3H for qemu-devel@nongnu.org; Sun, 05 Apr 2009 09:44:43 -0400 Received: from [199.232.76.173] (port=37000 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqSeM-0003Dq-TM for qemu-devel@nongnu.org; Sun, 05 Apr 2009 09:44:38 -0400 Received: from yw-out-1718.google.com ([74.125.46.152]:40514) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LqSeM-0004HH-JO for qemu-devel@nongnu.org; Sun, 05 Apr 2009 09:44:38 -0400 Received: by yw-out-1718.google.com with SMTP id 9so1067309ywk.82 for ; Sun, 05 Apr 2009 06:44:37 -0700 (PDT) Message-ID: <49D8B5C2.4090901@codemonkey.ws> Date: Sun, 05 Apr 2009 08:44:34 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <1238842115-31236-1-git-send-email-avi@redhat.com> In-Reply-To: <1238842115-31236-1-git-send-email-avi@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH] Fix display breakage when resizing the screen Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org Avi Kivity wrote: > When the vga resolution changes, a new display surface is not allocated > immediately; instead that is deferred until the next update. However, > if we're running without a display client attached, that won't happen > and the next bitblt is likely to cause a segfault by overflowing the > display surface. > > Fix by reallocating the display immediately when the resolution changes. > > Tested with (Windows|Linux) x (cirrus|std) x (curses|sdl). > > Signed-off-by: Avi Kivity