]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMigrationDstPrepareAnyBlockDirtyBitmaps: Fix check for existing bitmaps
authorPeter Krempa <pkrempa@redhat.com>
Tue, 27 Jan 2026 18:22:08 +0000 (19:22 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 3 Feb 2026 14:34:52 +0000 (15:34 +0100)
commit0c75fc1747f039bf878ceab69cf12482ebb14095
tree043f8e19593c77bf22978da63c20e9149fdc3c66
parentb2fe3465de1db033e436f38fdd24648c8c884a3d
qemuMigrationDstPrepareAnyBlockDirtyBitmaps: Fix check for existing bitmaps

On incoming migration qemu doesn't load bitmaps into memory (which makes
them available under the 'dirty-bitmaps' field which we parse as the
'bitmaps' array in 'qemuBlockNamedNodeData') until after actually
resuming CPUs, thus the check for existing bitmaps never actually
worked.

We need to check the 'qcow2bitmaps' field instead which is populated
from the qcow2 headers prior to activating the image.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_migration.c