]> xenbits.xensource.com Git - libvirt.git/commit
qemu snapshot: use QMP snapshot-save for internal snapshots creation
authorNikolai Barybin via Devel <devel@lists.libvirt.org>
Wed, 17 Jul 2024 18:21:41 +0000 (21:21 +0300)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 9 Oct 2024 14:00:43 +0000 (16:00 +0200)
commitb93af62c40ec8dceb222bbf74f7714f0a6e460a0
treef5ee3bc6fb5bb772df04180e5ff97df16c20c9d3
parent6d8ae98fa053919282f86d86ae277c1d8ace3114
qemu snapshot: use QMP snapshot-save for internal snapshots creation

The usage of HMP commands are highly discouraged by qemu. Moreover,
current snapshot creation routine does not provide flexibility in
choosing target device for VM state snapshot.

This patch makes use of QMP commands snapshot-save and by
default chooses first writable non-shared qcow2 disk (if present)
as target for VM state.

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