qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] qemu vnc.c


From: Anders Melchiorsen
Subject: Re: [Qemu-devel] qemu vnc.c
Date: Mon, 14 Jan 2008 21:38:38 +0100
User-agent: Gnus/5.1008 (Gnus v5.10.8) XEmacs/21.4.20 (linux)

Johannes Schindelin <address@hidden> writes:

> Since you attached the patch, I will not quote the part that I am 
> commenting on.

Yes, I attach to preserve formatting. Am I supposed to put it inline? 
Anyway, here it is, for discussion:

diff --git a/qemu/vl.c b/qemu/vl.c
index 30c9537..8d67314 100644
--- 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;
 }
 
 /***********************************************************/


> By your change to dumb_refresh() you are affecting definitely more than 
> just VNC.  I have doubts that this is intended, or good.

This patch is not for VNC, but for -nographic. I resent it because it
is part of my timer optimization crusade as well.

About the "good" part: I tried stepping through the dumb_refresh()
call before removing it, and it ended up doing nothing. Is it needed
anyway? (in that case, the VNC patch is also wrong, as it stops the
periodic timer when no client is connected).

Also, the CONFIG_SDL thing that can make the function into a noop made
me quite confident that nothing globally important was going on with
the refresh.


Cheers,
Anders.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]