]> git.proxmox.com Git - pve-qemu-kvm.git/commit - debian/patches/internal-snapshot-async.patch
vmstate snapshot : implement cancelled state V2
authorAlexandre Derumier <aderumier@odiso.com>
Fri, 21 Nov 2014 09:26:02 +0000 (10:26 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Fri, 21 Nov 2014 11:14:33 +0000 (12:14 +0100)
commit232613686d2d3ddc2dea1ed9d4eb59ddbbb982b8
tree849c608e05466f5cf629fee766d4929150f578e9
parentfa46f5131d41d47fbb1e527647eab0968b2dce9c
vmstate snapshot : implement cancelled state V2

currently, if we cancel a active savevm job with savevm-end,
we don't close the vmstate file.

This implement a new state CANCELLED, which is setup if savevm-end is called
when savevm is ACTIVE

then, in the coroutine, if state CANCELLED is detected,
we call save_snapshot_completed() to properly close the file
then qmp_savevm_end to finish the job

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
debian/patches/internal-snapshot-async.patch