]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: set seamless migration capability
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 19 Oct 2012 06:45:04 +0000 (08:45 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 22 Oct 2012 08:09:47 +0000 (10:09 +0200)
As we switched to setting capabilities based on QMP communication,
qemu seamless-migration capability was not set. In the -help output
this knob is called seamless-migration=[on|off]. The equivalent in
QMP world is SPICE_MIGRATE_COMPLETED event (qemu upstream commit
2fdd16e2).

src/qemu/qemu_capabilities.c

index c9a4ab7a5e14da505a330e76ffd4d74df4879b81..f3dcd34ef538727b279f6ad9c1937052bc5518d2 100644 (file)
@@ -1908,6 +1908,8 @@ qemuCapsProbeQMPEvents(qemuCapsPtr caps,
 
         if (STREQ(name, "BALLOON_CHANGE"))
             qemuCapsSet(caps, QEMU_CAPS_BALLOON_EVENT);
+        if (STREQ(name, "SPICE_MIGRATE_COMPLETED"))
+            qemuCapsSet(caps, QEMU_CAPS_SEAMLESS_MIGRATION);
         VIR_FREE(name);
     }
     VIR_FREE(events);