]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
qemu: fix error message with migrate2 xml
authorEric Blake <eblake@redhat.com>
Tue, 19 Jul 2011 22:40:32 +0000 (16:40 -0600)
committerEric Blake <eblake@redhat.com>
Thu, 21 Jul 2011 16:34:51 +0000 (10:34 -0600)
Otherwise, an ABI mismatch gives error messages attributing the target
xml string as current, and the current domain state as the new xml.

* src/qemu/qemu_migration.c (qemuMigrationBegin): Use correct
argument order.

src/qemu/qemu_migration.c

index 9c1bde5345c3876bb583ecad883d2593d4473a86..32822718161093024784995be568296f9215133a 100644 (file)
@@ -1037,7 +1037,7 @@ char *qemuMigrationBegin(struct qemud_driver *driver,
                                             VIR_DOMAIN_XML_INACTIVE)))
             goto cleanup;
 
-        if (!virDomainDefCheckABIStability(def, vm->def))
+        if (!virDomainDefCheckABIStability(vm->def, def))
             goto cleanup;
 
         rv = qemuDomainDefFormatXML(driver, def,