]> xenbits.xensource.com Git - libvirt.git/commit
backup: Wire up qemu checkpoint commands over QMP
authorEric Blake <eblake@redhat.com>
Fri, 26 Jul 2019 20:52:08 +0000 (15:52 -0500)
committerEric Blake <eblake@redhat.com>
Mon, 29 Jul 2019 13:15:31 +0000 (08:15 -0500)
commit3a204b036f04ebf63c53dca205a856a1aaaa53ff
tree8c8e5009c1d6c13b5b50847018052ffbae57acd4
parente3a4b8f461a204d531f9c04c3f196e07ae1a6c8e
backup: Wire up qemu checkpoint commands over QMP

Time to actually issue the QMP transactions that create and delete
persistent checkpoints, resolving TODOs intentionally left earlier in
the series.  For create, we only need one transaction: inside, we
visit all disks affected by the checkpoint, and create a new enabled
bitmap, as well as disabling the bitmap of the first ancestor
checkpoint (if any) that also had a bitmap.  For deletion, we need
multiple QMP calls: for each disk, if there is an ancestor checkpoint
with a bitmap, then the bitmap must be merged (including activating
the ancestor bitmap if the leaf node changes), all before deleting the
bitmap from the checkpoint being removed.

Signed-off-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_driver.c