diff options
author | Anthony Liguori <aliguori@amazon.com> | 2013-12-16 09:44:13 -0800 |
---|---|---|
committer | Anthony Liguori <aliguori@amazon.com> | 2013-12-16 09:44:13 -0800 |
commit | b91f93243bbe36dc436a64a662a9bbfb2362534a (patch) | |
tree | 6a635a56f1b180aadaeba9d4c20fc9180dba5170 /hw | |
parent | 80d6f5eae79b009bf3e02e59e9e225db42ddf887 (diff) | |
parent | 75c70e37bc4a6bdc394b4d1b163fe730abb82c72 (diff) | |
download | qemu-b91f93243bbe36dc436a64a662a9bbfb2362534a.zip qemu-b91f93243bbe36dc436a64a662a9bbfb2362534a.tar.gz qemu-b91f93243bbe36dc436a64a662a9bbfb2362534a.tar.bz2 |
Merge remote-tracking branch 'spice/tags/pull-spice-1' into staging
Collection of little cleanups anf bugfixes.
nbd patches in preparation of spice-nbd.
# gpg: Signature made Mon 16 Dec 2013 01:27:45 AM PST using RSA key ID D3E87138
# gpg: Can't check signature: public key not found
# By Marc-André Lureau (12) and Gerd Hoffmann (4)
# Via Gerd Hoffmann
* spice/tags/pull-spice-1:
spice: stop server for qxl hard reset
spice: move spice_server_vm_{start,stop} calls into qemu_spice_display_*()
spice: move qemu_spice_display_*() from spice-graphics to spice-core
nbd: avoid uninitialized warnings
nbd: finish any pending coroutine
nbd: make nbd_client_session_close() idempotent
nbd: pass export name as init argument
nbd: don't change socket block during negotiate
Split nbd block client code
spice-char: implement chardev port event
char: add qemu_chr_fe_event()
include: add missing config-host.h include
qmp_change_blockdev() remove unused has_format
spice-char: remove unused field
vscclient: do not add a socket watch if there is not data to send
spice: flip streaming video mode to off by default
Diffstat (limited to 'hw')
-rw-r--r-- | hw/display/qxl.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/hw/display/qxl.c b/hw/display/qxl.c index efdefd6..e4f172e 100644 --- a/hw/display/qxl.c +++ b/hw/display/qxl.c @@ -1144,8 +1144,14 @@ static void qxl_soft_reset(PCIQXLDevice *d) static void qxl_hard_reset(PCIQXLDevice *d, int loadvm) { + bool startstop = qemu_spice_display_is_running(&d->ssd); + trace_qxl_hard_reset(d->id, loadvm); + if (startstop) { + qemu_spice_display_stop(); + } + qxl_spice_reset_cursor(d); qxl_spice_reset_image_cache(d); qxl_reset_surfaces(d); @@ -1159,6 +1165,10 @@ static void qxl_hard_reset(PCIQXLDevice *d, int loadvm) } qemu_spice_create_host_memslot(&d->ssd); qxl_soft_reset(d); + + if (startstop) { + qemu_spice_display_start(); + } } static void qxl_reset_handler(DeviceState *dev) |