Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mas7a-0002QH-GT for qemu-devel@nongnu.org; Tue, 11 Aug 2009 10:14:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mas7V-0002Mn-Ta for qemu-devel@nongnu.org; Tue, 11 Aug 2009 10:14:37 -0400 Received: from [199.232.76.173] (port=41292 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mas7V-0002MZ-Cq for qemu-devel@nongnu.org; Tue, 11 Aug 2009 10:14:33 -0400 Received: from smtp.eu.citrix.com ([62.200.22.115]:49830) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mas7V-0007uZ-1u for qemu-devel@nongnu.org; Tue, 11 Aug 2009 10:14:33 -0400 Date: Tue, 11 Aug 2009 15:16:06 +0100 From: Stefano Stabellini In-Reply-To: <4A817ACA.8050902@redhat.com> Message-ID: References: <200908102147.n7ALlBHB029958@d03av04.boulder.ibm.com> <4A815A73.2010200@redhat.com> <4A817434.3050805@redhat.com> <4A817ACA.8050902@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Subject: [Qemu-devel] Re: [Qemu-commits] [COMMIT 0bd8246] vga: do not resize the screen on hw_invalidate List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: Anthony Liguori , qemu-devel , Stefano Stabellini On Tue, 11 Aug 2009, Avi Kivity wrote: > On 08/11/2009 04:39 PM, Stefano Stabellini wrote: > > On Tue, 11 Aug 2009, Avi Kivity wrote: > > > >> On 08/11/2009 04:20 PM, Stefano Stabellini wrote: > >> > >>> is the screendump taken using a vnc screendump utility or is it done by > >>> issuing the screendump command from the monitor? > >>> > >>> > >> The screendump command from the monitor. > >> > >> > > > > Then you must also have at least a vnc client always connected to vnc, > > right? > > Because in the trace you posted before there is a call from vnc_refresh, > > and that should happen only when there are vnc clients connected. > > > > I observed this even without a vnc client connected (kvm-autotest + lunch). > If a vnc client is connected and a resize event happens while we are taking a screendump, we loose the resize event in vnc and we end up with a DisplaySurface of the wrong size. The same thing could happen without vnc client connected because we are not handling resize events in the screen_dump code at all. I am going to take Anthony suggestion and refactor the screen_dump code to use the DisplayState interface properly.