spice: simple display

With that patch applied you'll actually see the guests screen in the
spice client.  This does *not* bring qxl and full spice support though.
This is basically the qxl vga mode made more generic, so it plays
together with any qemu-emulated gfx card.  You can display stdvga or
cirrus via spice client.  You can have both vnc and spice enabled and
clients connected at the same time.
This commit is contained in:
Gerd Hoffmann 2010-08-25 15:32:06 +02:00
parent 78dd9ac1ca
commit a3e2226031
5 changed files with 490 additions and 1 deletions

7
vl.c
View file

@ -2931,6 +2931,8 @@ int main(int argc, char **argv, char **envp)
/* just use the first displaystate for the moment */
ds = get_displaystate();
if (using_spice)
display_remote++;
if (display_type == DT_DEFAULT && !display_remote) {
#if defined(CONFIG_SDL) || defined(CONFIG_COCOA)
display_type = DT_SDL;
@ -2973,6 +2975,11 @@ int main(int argc, char **argv, char **envp)
printf("VNC server running on `%s'\n", vnc_display_local_addr(ds));
}
}
#ifdef CONFIG_SPICE
if (using_spice) {
qemu_spice_display_init(ds);
}
#endif
/* display setup */
dpy_resize(ds);