[PATCH 1/3] Add public API for parallel compression method

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

 



Add public API VIR_MIGRATE_PARAM_PARALLEL_COMPRESSION,
VIR_MIGRATE_PARAM_PARALLEL_ZLIB_LEVEL, VIR_MIGRATE_PARAM_PARALLEL_ZSTD_LEVEL
for migration APIs to support set compression method
and compress level used during migration.

Signed-off-by: Jiang Jiacheng <jiangjiacheng@xxxxxxxxxx>
---
 include/libvirt/libvirt-domain.h | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)

diff --git a/include/libvirt/libvirt-domain.h b/include/libvirt/libvirt-domain.h
index 5152ed4551..981f4e5160 100644
--- a/include/libvirt/libvirt-domain.h
+++ b/include/libvirt/libvirt-domain.h
@@ -1351,6 +1351,36 @@ typedef enum {
  */
 # define VIR_MIGRATE_PARAM_PARALLEL_CONNECTIONS     "parallel.connections"
 
+/**
+ * VIR_MIGRATE_PARAM_PARALLEL_COMPRESSION:
+ *
+ * virDomainMigrate* params field: compression method used during parallel
+ * migration. As VIR_TYPED_PARAM_INT.
+ *
+ * Since: 9.1.0
+ */
+# define VIR_MIGRATE_PARAM_PARALLEL_COMPRESSION     "parallel.compression"
+
+/**
+ * VIR_MIGRATE_PARAM_PARALLEL_ZLIB_LEVEL:
+ *
+ * virDomainMigrate* params field: zlib compress level used during parallel
+ * migration. As VIR_TYPED_PARAM_INT.
+ *
+ * Since: 9.1.0
+ */
+# define VIR_MIGRATE_PARAM_PARALLEL_ZLIB_LEVEL      "parallel.zlib.level"
+
+/**
+ * VIR_MIGRATE_PARAM_PARALLEL_ZSTD_LEVEL:
+ *
+ * virDomainMigrate* params field: zstd compress level used during parallel
+ * migration. As VIR_TYPED_PARAM_INT.
+ *
+ * Since: 9.1.0
+ */
+# define VIR_MIGRATE_PARAM_PARALLEL_ZSTD_LEVEL      "parallel.zstd.level"
+
 /**
  * VIR_MIGRATE_PARAM_TLS_DESTINATION:
  *
-- 
2.33.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