mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-05 13:17:51 +03:00
qemu: migration: Use correct flag when preparing block dirty bitmaps
qemuMigrationSrcRunPrepareBlockDirtyBitmaps receives the flags parameter
from qemuMigrationSrcRun, where flags are based on the main API enum
values. Similar to commit f58349c9c6
, use the main API enum instead of
internal driver enum when checking flags in
qemuMigrationSrcRunPrepareBlockDirtyBitmaps.
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
364995ed57
commit
b0220b2e27
@ -3968,11 +3968,10 @@ qemuMigrationSrcRunPrepareBlockDirtyBitmaps(virDomainObj *vm,
|
||||
if (qemuMigrationCookieBlockDirtyBitmapsMatchDisks(vm->def, mig->blockDirtyBitmaps) < 0)
|
||||
return -1;
|
||||
|
||||
/* For QEMU_MONITOR_MIGRATE_NON_SHARED_INC we can migrate the bitmaps
|
||||
* directly, otherwise we must create merged bitmaps from the whole
|
||||
* chain */
|
||||
/* For VIR_MIGRATE_NON_SHARED_INC we can migrate the bitmaps directly,
|
||||
* otherwise we must create merged bitmaps from the whole chain */
|
||||
|
||||
if (!(flags & QEMU_MONITOR_MIGRATE_NON_SHARED_INC) &&
|
||||
if (!(flags & VIR_MIGRATE_NON_SHARED_INC) &&
|
||||
qemuMigrationSrcRunPrepareBlockDirtyBitmapsMerge(vm, mig) < 0)
|
||||
return -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user