From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anthony Liguori Subject: Re: [PATCH] Fix display breakage when resizing the screen Date: Sun, 05 Apr 2009 08:44:34 -0500 Message-ID: <49D8B5C2.4090901@codemonkey.ws> References: <1238842115-31236-1-git-send-email-avi@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mail-gx0-f160.google.com ([209.85.217.160]:47647 "EHLO mail-gx0-f160.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753284AbZDENok (ORCPT ); Sun, 5 Apr 2009 09:44:40 -0400 Received: by gxk4 with SMTP id 4so3864996gxk.13 for ; Sun, 05 Apr 2009 06:44:36 -0700 (PDT) In-Reply-To: <1238842115-31236-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: 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