[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] qemu: set seamless migration capability

On 2012年10月19日 15:35, Michal Privoznik wrote:
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
  src/qemu/qemu_capabilities.c |    2 ++
  1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index e897f86..0ddab80 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -1905,6 +1905,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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]