diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2012-08-21 11:51:57 +0300 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-09-05 17:11:55 +0200 |
commit | 2fdd16e239c2a2763aa3266e637718123328688c (patch) | |
tree | 0c2e675233eadf02d29a13fad4c63f6050d6470c /monitor.h | |
parent | 71d388d420e68ac77cd42f15f7e68cf5a6fb01b2 (diff) | |
download | hqemu-2fdd16e239c2a2763aa3266e637718123328688c.zip hqemu-2fdd16e239c2a2763aa3266e637718123328688c.tar.gz |
spice migration: add QEVENT_SPICE_MIGRATE_COMPLETED
When migrating, libvirt queries the migration status, and upon migration
completions, it closes the migration src. On the other hand, when
migration is completed, spice transfers data from the src to destination
via the client. This data is required for keeping the spice session
after migration, without suffering from data loss and inconsistencies.
In order to allow this data transfer, we add QEVENT for signaling
libvirt that spice migration has completed, and libvirt needs to wait
for this event before quitting the src process.
Signed-off-by: Yonit Halperin <yhalperi@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'monitor.h')
-rw-r--r-- | monitor.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -43,6 +43,7 @@ typedef enum MonitorEvent { QEVENT_SUSPEND_DISK, QEVENT_WAKEUP, QEVENT_BALLOON_CHANGE, + QEVENT_SPICE_MIGRATE_COMPLETED, /* Add to 'monitor_event_names' array in monitor.c when * defining new events here */ |