]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Use "migratable" XML definition when doing external checkpoints
authorPeter Krempa <pkrempa@redhat.com>
Mon, 16 Sep 2013 11:40:42 +0000 (13:40 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 17 Sep 2013 07:42:43 +0000 (09:42 +0200)
In the original implementation of external checkpoints I've mistakenly
used the live definition to be stored in the save image. The normal
approach is to use the "migratable" definition. This was discovered when
commit 07966f6a8b5ccb5bb4c716b25deb8ba2e572cc67 changed the behavior to
use a converted XML from the user to do the compatibility check to fix
problem when using the regular machine saving.

As the previous patch added a compatibility layer, we can now change the
type of the XML in the image.

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

src/qemu/qemu_driver.c

index 967daed3451abd0b1d2ed48980028b6fd0a3b7e6..a09bb8192b26b3d08e5a8893ead7cf541b978892 100644 (file)
@@ -12157,7 +12157,7 @@ qemuDomainSnapshotCreateActiveExternal(virConnectPtr conn,
                                      JOB_MASK(QEMU_JOB_SUSPEND) |
                                      JOB_MASK(QEMU_JOB_MIGRATION_OP));
 
-        if (!(xml = qemuDomainDefFormatLive(driver, vm->def, true, false)))
+        if (!(xml = qemuDomainDefFormatLive(driver, vm->def, true, true)))
             goto endjob;
 
         if ((ret = qemuDomainSaveMemory(driver, vm, snap->def->file,