Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JFEj2-0000Hy-Sd for qemu-devel@nongnu.org; Wed, 16 Jan 2008 15:19:04 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JFEj1-0000HN-Pc for qemu-devel@nongnu.org; Wed, 16 Jan 2008 15:19:04 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JFEj1-0000HC-JW for qemu-devel@nongnu.org; Wed, 16 Jan 2008 15:19:03 -0500 Received: from 0xc2c0b63d.fbbft3nxf1.bf-dhcp.tele.dk ([194.192.182.61] helo=smtp.hotelhot.dk) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JFEj1-0008KA-3k for qemu-devel@nongnu.org; Wed, 16 Jan 2008 15:19:03 -0500 Subject: Re: [Qemu-devel] qemu vnc.c References: <87ir1wxjf0.fsf@dylle.kalibalik.dk> <87d4s4xhv5.fsf@dylle.kalibalik.dk> From: Anders Melchiorsen Date: Wed, 16 Jan 2008 21:18:57 +0100 In-Reply-To: <87d4s4xhv5.fsf@dylle.kalibalik.dk> (Anders Melchiorsen's message of "Mon, 14 Jan 2008 21:38:38 +0100") Message-ID: <871w8h34ni.fsf@dylle.kalibalik.dk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Anders Melchiorsen writes: > --- a/qemu/vl.c > +++ b/qemu/vl.c > @@ -4902,13 +4902,6 @@ static void dumb_resize(DisplayState *ds, int w, int h) > { > } > > -static void dumb_refresh(DisplayState *ds) > -{ > -#if defined(CONFIG_SDL) > - vga_hw_update(); > -#endif > -} > - > static void dumb_display_init(DisplayState *ds) > { > ds->data = NULL; > @@ -4916,7 +4909,7 @@ static void dumb_display_init(DisplayState *ds) > ds->depth = 0; > ds->dpy_update = dumb_update; > ds->dpy_resize = dumb_resize; > - ds->dpy_refresh = dumb_refresh; > + ds->dpy_refresh = NULL; > } Hi again. My understanding is that the vga_hw_update() call pushes VRAM contents into whatever ->data buffer the display (SDL, VNC, etc.) has provided, and calls ->dpy_update() to have it shown. As the dumb driver has no data area, this is not needed. The ->dpy_refresh pointer can safely be NULL, as it is only called from gui_update(). The gui_update() function is a timer callback that is only set up if the ->dpy_refresh value is indeed non-NULL. All the removed code was added in this patch, http://www.mail-archive.com/qemu-devel@nongnu.org/msg10829.html Stefan, can you maybe confirm that this part of your patch is in fact not needed? Cheers, Anders.