diff options
author | Yonit Halperin <yhalperi@redhat.com> | 2012-08-21 11:51:58 +0300 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2012-09-05 17:11:55 +0200 |
commit | 61c4efe2cb85b0a9c6bc68f6a2dd107c8d7ec080 (patch) | |
tree | 7fb8d0359bb5e8d34e0cb17a7fea20aed64f44c9 /hmp.c | |
parent | 2fdd16e239c2a2763aa3266e637718123328688c (diff) | |
download | qemu-61c4efe2cb85b0a9c6bc68f6a2dd107c8d7ec080.zip qemu-61c4efe2cb85b0a9c6bc68f6a2dd107c8d7ec080.tar.gz qemu-61c4efe2cb85b0a9c6bc68f6a2dd107c8d7ec080.tar.bz2 |
spice: add 'migrated' flag to spice info
The flag is 'true' when spice migration has completed on the src side.
It is needed for a case where libvirt dies before migration completes
and it misses the event QEVENT_SPICE_MIGRATE_COMPLETED.
When libvirt is restored and queries the migration status, it also needs
to query spice and check if its migration has completed.
Signed-off-by: Yonit Halperin <yhalperi@redhat.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hmp.c')
-rw-r--r-- | hmp.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -413,6 +413,8 @@ void hmp_info_spice(Monitor *mon) monitor_printf(mon, " address: %s:%" PRId64 " [tls]\n", info->host, info->tls_port); } + monitor_printf(mon, " migrated: %s\n", + info->migrated ? "true" : "false"); monitor_printf(mon, " auth: %s\n", info->auth); monitor_printf(mon, " compiled: %s\n", info->compiled_version); monitor_printf(mon, " mouse-mode: %s\n", |