]> Git Repo - qemu.git/commitdiff
qxl+vnc: register a vm state change handler for dummy spice_server
authorUri Lublin <[email protected]>
Wed, 12 Dec 2012 16:30:47 +0000 (18:30 +0200)
committerGerd Hoffmann <[email protected]>
Mon, 17 Dec 2012 13:01:32 +0000 (14:01 +0100)
When qxl + vnc are used, a dummy spice_server is initialized.
The spice_server has to be told when the VM runstate changes,
which is what this patch does.

Without it, from qxl_send_events(), the following error message is shown:
  qxl_send_events: spice-server bug: guest stopped, ignoring

Cc: [email protected]
Signed-off-by: Uri Lublin <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
ui/spice-core.c

index 261c6f2c11c996d50ebd3dda3a05682618b0a45d..59ce5f6370dbf4afb7b88e4d49896b502517d17e 100644 (file)
@@ -732,6 +732,8 @@ int qemu_spice_add_interface(SpiceBaseInstance *sin)
          */
         spice_server = spice_server_new();
         spice_server_init(spice_server, &core_interface);
+        qemu_add_vm_change_state_handler(vm_change_state_handler,
+                                         &spice_server);
     }
 
     return spice_server_add_interface(spice_server, sin);
This page took 0.026715 seconds and 4 git commands to generate.