]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuMigrationSrcIsSafeDisk: Allow non-shared qcow2's with raw data file
authorPeter Krempa <pkrempa@redhat.com>
Tue, 9 Sep 2025 13:56:10 +0000 (15:56 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 23 Sep 2025 16:57:00 +0000 (18:57 +0200)
commit2d6e21885f56b03b656b606940ab588e92774afe
treea5e49f4844b1675329dedfe7c492dca0e9b9950e
parent6e5a3334b2eb4e27dd1172669e875764cf82003d
qemuMigrationSrcIsSafeDisk: Allow non-shared qcow2's with raw data file

A qcow2 image which uses a data file and the 'data_file_raw' flag is
effectively a raw image with the qcow2 wrapper used only to store
metadata (block dirty bitmaps).

Since the dirty bitmaps are always migrated using the migration stream
it's technically not required that the qcow2 overlay itself is shared
between the destinations.

Management tools like Kubevirt want to migrate VMs which have a qcow2
overlay with the above config stored in a location that is not shared,
but the data file itself is.

This patch adds code that skips the validation of the overlay since it's
not needed to ensure data consistency in that very specific case.

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