[PATCH 6/9] qemu: introduce qemuMigrationParamsSetCapability

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux