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>
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;