]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_snapshot: prepare data for external snapshot deletion
authorPavel Hrdina <phrdina@redhat.com>
Mon, 5 Dec 2022 18:15:50 +0000 (19:15 +0100)
committerPavel Hrdina <phrdina@redhat.com>
Mon, 9 Jan 2023 12:33:04 +0000 (13:33 +0100)
commit4a4d89a92522de7dbab0f99a571ff2e565be24e0
tree4d1d0d20f594a7c6a8628a63507de153f50da4f7
parent2038c1cd3a1731cceb6a4136774ba62fd98327ae
qemu_snapshot: prepare data for external snapshot deletion

In order to save some CPU cycles we will collect all the necessary data
to delete external snapshot before we even start. They will be later
used by code that deletes the snapshots and updates metadata when
needed.

With external snapshots we need data that libvirt gets from running QEMU
process so if the VM is not running we need to start paused QEMU process
for the snapshot deletion and kill at afterwards.

Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_snapshot.c