summaryrefslogtreecommitdiffstats
path: root/server/reds.c
diff options
context:
space:
mode:
authorYonit Halperin <yhalperi@redhat.com>2012-08-20 13:49:00 +0300
committerYonit Halperin <yhalperi@redhat.com>2012-08-27 09:04:52 +0300
commit2a1369c91966450424910d51f39e4b57a7c8973f (patch)
treeb49a1f83f86affaa92009a4ff643844f65ff7b6d /server/reds.c
parentc302e12c78acc24461e19691119557945e0c2dc8 (diff)
downloadspice-2a1369c91966450424910d51f39e4b57a7c8973f.tar.gz
spice-2a1369c91966450424910d51f39e4b57a7c8973f.tar.xz
spice-2a1369c91966450424910d51f39e4b57a7c8973f.zip
spice_server_vm_start/stop: notify red_dispatcher on vm start/stop
Till now, red_worker was notfied about vm status changes via QXLWorker->start/stop (or spice_qxl_start/stop). Newer qemu, that supports calling spice_server_vm_start/stop, will call only these routines, and won't call QXLWorker->start/stop.
Diffstat (limited to 'server/reds.c')
-rw-r--r--server/reds.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/reds.c b/server/reds.c
index b0c609f6..416dff40 100644
--- a/server/reds.c
+++ b/server/reds.c
@@ -4041,6 +4041,7 @@ SPICE_GNUC_VISIBLE void spice_server_vm_start(SpiceServer *s)
st_item = SPICE_CONTAINEROF(item, SpiceCharDeviceStateItem, link);
spice_char_device_start(st_item->st);
}
+ red_dispatcher_on_vm_start();
}
SPICE_GNUC_VISIBLE void spice_server_vm_stop(SpiceServer *s)
@@ -4055,6 +4056,7 @@ SPICE_GNUC_VISIBLE void spice_server_vm_stop(SpiceServer *s)
st_item = SPICE_CONTAINEROF(item, SpiceCharDeviceStateItem, link);
spice_char_device_stop(st_item->st);
}
+ red_dispatcher_on_vm_stop();
}
ssize_t reds_stream_read(RedsStream *s, void *buf, size_t nbyte)