]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: snapshot: Resume VM after live snapshot
authorPeter Krempa <pkrempa@redhat.com>
Wed, 4 Jan 2017 12:23:31 +0000 (13:23 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 4 Jan 2017 15:50:18 +0000 (16:50 +0100)
Commit 4b951d1e38259ff5d03e9eedb65095eead8099e1 missed the fact that the
VM needs to be resumed after a live external checkpoint (memory
snapshot) where the cpus would be paused by the migration rather than
libvirt.

src/qemu/qemu_driver.c

index b359e7757d7b350e3a9cf768e75f034c8fb988e4..675a4d0e7e8f443d20f37475eef3e20498fbb6ff 100644 (file)
@@ -14503,6 +14503,9 @@ qemuDomainSnapshotCreateActiveExternal(virConnectPtr conn,
          * atomic flag now says whether we need to pause, and a
          * capability bit says whether to use transaction.
          */
+        if (memory)
+            resume = true;
+
         if ((memory && !(flags & VIR_DOMAIN_SNAPSHOT_CREATE_LIVE)) ||
             (!memory && atomic && !transaction)) {
             if (qemuProcessStopCPUs(driver, vm, VIR_DOMAIN_PAUSED_SNAPSHOT,