]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: monitor: Detect list of bitmaps from 'qcow2' format specific data
authorPeter Krempa <pkrempa@redhat.com>
Tue, 27 Jan 2026 19:07:32 +0000 (20:07 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 3 Feb 2026 14:34:52 +0000 (15:34 +0100)
commitb2fe3465de1db033e436f38fdd24648c8c884a3d
tree691c2f7b03db08fbd24adedbe438e90b6bc8771e
parent71643c197e86a3adc792c0b2a378a245ae6c5756
qemu: monitor: Detect list of bitmaps from 'qcow2' format specific data

We currently probe dirty block tracking bitmaps by looking at the loaded
ones ('dirty-bitmaps'). Unfortunately those may not yet be populated on
incoming migration when the image was not yet activated, but we need to
know which ones are stored in the image so that we don't migrate those
explicitly, which would fail.

Load the list of bitmaps in a qcow2 image from the format specific data,
which is already loaded at that point.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor_json.c
tests/qemublocktest.c
tests/qemublocktestdata/bitmap/snapshots.out
tests/qemublocktestdata/bitmap/synthetic.out