summaryrefslogtreecommitdiffstats
path: root/vl.c
diff options
context:
space:
mode:
authorGerd Hoffmann2010-08-25 15:32:06 +0200
committerGerd Hoffmann2010-09-21 18:36:43 +0200
commita3e2226031496f479b5fe4a069ec1acd68a17e8d (patch)
tree63c39570f191877a6b2732ca9a8605dc8f51df65 /vl.c
parentspice: add mouse (diff)
downloadqemu-a3e2226031496f479b5fe4a069ec1acd68a17e8d.tar.gz
qemu-a3e2226031496f479b5fe4a069ec1acd68a17e8d.tar.xz
qemu-a3e2226031496f479b5fe4a069ec1acd68a17e8d.zip
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.
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index 27d9392f77..ee4f8c86fe 100644
--- a/vl.c
+++ b/vl.c
@@ -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);