From: Peter Krempa Date: Wed, 4 Jan 2017 12:23:31 +0000 (+0100) Subject: qemu: snapshot: Resume VM after live snapshot X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=2e86c0816fc8ab573745f1a9a650be09bd66e300;p=libvirt.git qemu: snapshot: Resume VM after live snapshot 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. --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index b359e7757d..675a4d0e7e 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -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,