]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Reset post-copy capability after migration
authorJiri Denemark <jdenemar@redhat.com>
Wed, 2 Nov 2016 13:20:42 +0000 (14:20 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 2 Nov 2016 14:50:44 +0000 (15:50 +0100)
Unlike other migration capabilities, post-copy is also set on the
destination host which means it doesn't disappear once domain is
migrated. As a result of that other functionality which internally uses
migration to a file (virDomainManagedSave, virDomainSave,
virDomainCoreDump) may fail after migration because the post-copy
capability is still set.

https://bugzilla.redhat.com/show_bug.cgi?id=1374718

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

index 1c4a80c3a49237cad1d17a6f086f5f9fcd6f6d15..d4a55d8f7146abae77445540af11318f5b41d9a3 100644 (file)
@@ -6418,6 +6418,9 @@ qemuMigrationFinish(virQEMUDriverPtr driver,
          */
         if (inPostCopy)
             VIR_FREE(priv->job.completed);
+
+        qemuMigrationSetPostCopy(driver, vm, false,
+                                 QEMU_ASYNC_JOB_MIGRATION_IN);
     }
 
     qemuMigrationJobFinish(driver, vm);