c8c376
From b17a6448e31684225e8c28aeba661a71a22dc917 Mon Sep 17 00:00:00 2001
c8c376
Message-Id: <b17a6448e31684225e8c28aeba661a71a22dc917@dist-git>
c8c376
From: Peter Krempa <pkrempa@redhat.com>
c8c376
Date: Thu, 5 Jan 2017 09:48:13 +0100
c8c376
Subject: [PATCH] qemu: snapshot: Resume VM after live snapshot
c8c376
c8c376
Commit 4b951d1e38259ff5d03e9eedb65095eead8099e1 missed the fact that the
c8c376
VM needs to be resumed after a live external checkpoint (memory
c8c376
snapshot) where the cpus would be paused by the migration rather than
c8c376
libvirt.
c8c376
c8c376
(cherry picked from commit 2e86c0816fc8ab573745f1a9a650be09bd66e300)
c8c376
c8c376
https://bugzilla.redhat.com/show_bug.cgi?id=1406765
c8c376
---
c8c376
 src/qemu/qemu_driver.c | 3 +++
c8c376
 1 file changed, 3 insertions(+)
c8c376
c8c376
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
c8c376
index 2e442a987..37b09998d 100644
c8c376
--- a/src/qemu/qemu_driver.c
c8c376
+++ b/src/qemu/qemu_driver.c
c8c376
@@ -14334,6 +14334,9 @@ qemuDomainSnapshotCreateActiveExternal(virConnectPtr conn,
c8c376
          * atomic flag now says whether we need to pause, and a
c8c376
          * capability bit says whether to use transaction.
c8c376
          */
c8c376
+        if (memory)
c8c376
+            resume = true;
c8c376
+
c8c376
         if ((memory && !(flags & VIR_DOMAIN_SNAPSHOT_CREATE_LIVE)) ||
c8c376
             (!memory && atomic && !transaction)) {
c8c376
             if (qemuProcessStopCPUs(driver, vm, VIR_DOMAIN_PAUSED_SNAPSHOT,
c8c376
-- 
c8c376
2.11.0
c8c376