[libvirt] [PATCH] qemu: snapshot: Resume VM after live snapshot
Pavel Hrdina
phrdina at redhat.com
Wed Jan 4 15:26:57 UTC 2017
On Wed, Jan 04, 2017 at 02:15:51PM +0100, Peter Krempa wrote:
> 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 | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
> index b359e7757..675a4d0e7 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,
ACK
Pavel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20170104/8ed59cf2/attachment-0001.sig>
More information about the libvir-list
mailing list