From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LqXLn-0007KY-Qa for qemu-devel@nongnu.org; Sun, 05 Apr 2009 14:45:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LqXLh-0007Iz-U1 for qemu-devel@nongnu.org; Sun, 05 Apr 2009 14:45:46 -0400 Received: from [199.232.76.173] (port=59896 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqXLh-0007Iu-PK for qemu-devel@nongnu.org; Sun, 05 Apr 2009 14:45:41 -0400 Received: from e33.co.us.ibm.com ([32.97.110.151]:58729) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LqXLh-0002rb-9d for qemu-devel@nongnu.org; Sun, 05 Apr 2009 14:45:41 -0400 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e33.co.us.ibm.com (8.13.1/8.13.1) with ESMTP id n35Ii8EC026333 for ; Sun, 5 Apr 2009 12:44:08 -0600 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n35IjdBo222434 for ; Sun, 5 Apr 2009 12:45:39 -0600 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n35IjdYA017556 for ; Sun, 5 Apr 2009 12:45:39 -0600 Message-ID: <49D8FC51.3010709@us.ibm.com> Date: Sun, 05 Apr 2009 13:45:37 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <1238945808-13027-1-git-send-email-avi@redhat.com> In-Reply-To: <1238945808-13027-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 (v2) 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). > > Changes from v1: > - fix segfault when switching virtual consoles with curses > > Signed-off-by: Avi Kivity > Applied. Thanks. -- Regards, Anthony Liguori