]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
Fix migration with QEMU 1.6
authorMichael Avdienko <whitearchey@gmail.com>
Fri, 15 Nov 2013 11:47:43 +0000 (20:47 +0900)
committerJiri Denemark <jdenemar@redhat.com>
Fri, 15 Nov 2013 12:50:47 +0000 (13:50 +0100)
QEMU 1.6.0 introduced new migration status: setup
Libvirt does not expect such string in QMP and refuses to migrate with error
"unexpected migration status in setup"

This patch fixes it.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
src/qemu/qemu_migration.c
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.h

index a3d986f0e749680a14e40f618d98bff3e9739b96..4b5fdba585bd6373aa6583f34c5d0400a574eed8 100644 (file)
@@ -1644,6 +1644,10 @@ qemuMigrationUpdateJobStatus(virQEMUDriverPtr driver,
                        _("%s: %s"), job, _("is not active"));
         break;
 
+    case QEMU_MONITOR_MIGRATION_STATUS_SETUP:
+        ret = 0;
+        break;
+
     case QEMU_MONITOR_MIGRATION_STATUS_ACTIVE:
         priv->job.info.fileTotal = priv->job.status.disk_total;
         priv->job.info.fileRemaining = priv->job.status.disk_remaining;
index 935f14021ad099bce722a68bb8c2ffa406dea7a3..87a77984e167dbbdfe8de7280d4c3a4914d3df04 100644 (file)
@@ -114,7 +114,7 @@ VIR_ONCE_GLOBAL_INIT(qemuMonitor)
 
 VIR_ENUM_IMPL(qemuMonitorMigrationStatus,
               QEMU_MONITOR_MIGRATION_STATUS_LAST,
-              "inactive", "active", "completed", "failed", "cancelled")
+              "inactive", "active", "completed", "failed", "cancelled", "setup")
 
 VIR_ENUM_IMPL(qemuMonitorMigrationCaps,
               QEMU_MONITOR_MIGRATION_CAPS_LAST,
index f893b1f224b0bd3365ec25fca228f535f4f3c85b..eabf000969f1aedb6ded5c2c60cdf0d739516d4b 100644 (file)
@@ -397,6 +397,7 @@ enum {
     QEMU_MONITOR_MIGRATION_STATUS_COMPLETED,
     QEMU_MONITOR_MIGRATION_STATUS_ERROR,
     QEMU_MONITOR_MIGRATION_STATUS_CANCELLED,
+    QEMU_MONITOR_MIGRATION_STATUS_SETUP,
 
     QEMU_MONITOR_MIGRATION_STATUS_LAST
 };