]> www.infradead.org Git - users/dwmw2/qemu.git/commit
spice migration: add QEVENT_SPICE_MIGRATE_COMPLETED
authorYonit Halperin <yhalperi@redhat.com>
Tue, 21 Aug 2012 08:51:57 +0000 (11:51 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 9 Oct 2012 06:58:28 +0000 (01:58 -0500)
commit986b9a1a2ae917a61ba4016c71e0505750202985
treed859ff9d9f25b86dc926bce7f440e94c27e398f8
parent25bc2251ebb0fd7cfbc08d6e4bc27acac5aa7a6e
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>
(cherry picked from commit 2fdd16e239c2a2763aa3266e637718123328688c)

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