From: Michal Privoznik Date: Fri, 19 Oct 2012 06:45:04 +0000 (+0200) Subject: qemu: set seamless migration capability X-Git-Tag: v1.0.0-rc1~29 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=508451e4ad03a73ccee2f5e2cd5c8779850452b6;p=thirdparty%2Flibvirt.git qemu: set seamless migration capability 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). --- diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index c9a4ab7a5e..f3dcd34ef5 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -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);