]> git.feebdaed.xyz Git - 0xmirror/libvirt.git/commit
qemu: snapshot: Setup disks for manual snapshot only when the VM is actually paused
authorPeter Krempa <pkrempa@redhat.com>
Mon, 1 Dec 2025 15:36:16 +0000 (16:36 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 10 Dec 2025 10:07:34 +0000 (11:07 +0100)
commit627bcc8525f93123d3d12ba0e937ee2d450654d4
tree61392d11fc6ade9fa1f5ea391ec76d4152e0a5b6
parent881aec23f80c54446704c8973153e23514813480
qemu: snapshot: Setup disks for manual snapshot only when the VM is actually paused

When creating a snapshot with 'VIR_DOMAIN_SNAPSHOT_CREATE_LIVE' the VM
is paused only after dumping the memory state.

This means that also the steps to do a 'manual' disk snapshot
(deactivation of the block nodes in qemu) must happen only once the VM
is paused.

Move the manual snapshot setup code after the memory snapshot code.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_snapshot.c