]> git.ipfire.org Git - thirdparty/qemu.git/commit
qxl+vnc: register a vm state change handler for dummy spice_server
authorUri Lublin <uril@redhat.com>
Wed, 12 Dec 2012 16:30:47 +0000 (18:30 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 16 Jan 2013 04:36:22 +0000 (22:36 -0600)
commitc4cd5b0f6de4173db97553a95ec9d82a8492ca7c
treeb4d6df8a2fe9041ff1d52724c84352f6b742feba
parent7ca2496588914a51e2f3f7983bb25f5dc8ba5630
qxl+vnc: register a vm state change handler for dummy spice_server

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: qemu-stable@nongnu.org
Signed-off-by: Uri Lublin <uril@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
(cherry picked from commit 938b8a36b65e44c44ca29245437f8d7ac0f826e8)

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
ui/spice-core.c