Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@xxxxxxxxxxxxx> --- src/qemu/qemu_migration_params.c | 12 ++++++++++++ src/qemu/qemu_migration_params.h | 4 ++++ 2 files changed, 16 insertions(+) diff --git a/src/qemu/qemu_migration_params.c b/src/qemu/qemu_migration_params.c index b6c582aaca..11081dc11c 100644 --- a/src/qemu/qemu_migration_params.c +++ b/src/qemu/qemu_migration_params.c @@ -1125,6 +1125,18 @@ qemuMigrationParamsGetULL(qemuMigrationParams *migParams, } +void +qemuMigrationParamsSetCapability(qemuMigrationParams *migParams, + qemuMigrationCapability cap, + bool value) +{ + if (value) + ignore_value(virBitmapSetBit(migParams->caps, cap)); + else + ignore_value(virBitmapClearBit(migParams->caps, cap)); +} + + /** * qemuMigrationParamsCheck: * diff --git a/src/qemu/qemu_migration_params.h b/src/qemu/qemu_migration_params.h index f770bd2576..5ca171226f 100644 --- a/src/qemu/qemu_migration_params.h +++ b/src/qemu/qemu_migration_params.h @@ -133,6 +133,10 @@ qemuMigrationParamsGetULL(qemuMigrationParams *migParams, unsigned long long *value); void +qemuMigrationParamsSetCapability(qemuMigrationParams *migParams, + qemuMigrationCapability cap, + bool value); +void qemuMigrationParamsSetBlockDirtyBitmapMapping(qemuMigrationParams *migParams, virJSONValue **params); -- 2.27.0