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

[libvirt] [PATCH 12/14] remote: Implement virDomainMigrate*CompressionCache



---
 src/remote/remote_driver.c   |  2 ++
 src/remote/remote_protocol.x | 19 ++++++++++++++++++-
 src/remote_protocol-structs  | 14 ++++++++++++++
 3 files changed, 34 insertions(+), 1 deletion(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index f35c44f..3721af9 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -6236,6 +6236,8 @@ static virDriver remote_driver = {
     .domainGetJobStats = remoteDomainGetJobStats, /* 1.0.3 */
     .domainAbortJob = remoteDomainAbortJob, /* 0.7.7 */
     .domainMigrateSetMaxDowntime = remoteDomainMigrateSetMaxDowntime, /* 0.8.0 */
+    .domainMigrateGetCompressionCache = remoteDomainMigrateGetCompressionCache, /* 1.0.3 */
+    .domainMigrateSetCompressionCache = remoteDomainMigrateSetCompressionCache, /* 1.0.3 */
     .domainMigrateSetMaxSpeed = remoteDomainMigrateSetMaxSpeed, /* 0.9.0 */
     .domainMigrateGetMaxSpeed = remoteDomainMigrateGetMaxSpeed, /* 0.9.5 */
     .domainEventRegisterAny = remoteDomainEventRegisterAny, /* 0.8.0 */
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
index 306d6b2..b957b8e 100644
--- a/src/remote/remote_protocol.x
+++ b/src/remote/remote_protocol.x
@@ -2178,6 +2178,21 @@ struct remote_domain_migrate_set_max_downtime_args {
     unsigned int flags;
 };
 
+struct remote_domain_migrate_get_compression_cache_args {
+    remote_nonnull_domain dom;
+    unsigned int flags;
+};
+
+struct remote_domain_migrate_get_compression_cache_ret {
+    unsigned hyper cacheSize; /* insert 1 */
+};
+
+struct remote_domain_migrate_set_compression_cache_args {
+    remote_nonnull_domain dom;
+    unsigned hyper cacheSize;
+    unsigned int flags;
+};
+
 struct remote_domain_migrate_set_max_speed_args {
     remote_nonnull_domain dom;
     unsigned hyper bandwidth;
@@ -3072,7 +3087,9 @@ enum remote_procedure {
     REMOTE_PROC_DOMAIN_SEND_PROCESS_SIGNAL = 295, /* autogen autogen */
     REMOTE_PROC_DOMAIN_OPEN_CHANNEL = 296, /* autogen autogen | readstream 2 */
     REMOTE_PROC_NODE_DEVICE_LOOKUP_SCSI_HOST_BY_WWN = 297, /* autogen autogen priority:high */
-    REMOTE_PROC_DOMAIN_GET_JOB_STATS = 298 /* skipgen skipgen */
+    REMOTE_PROC_DOMAIN_GET_JOB_STATS = 298, /* skipgen skipgen */
+    REMOTE_PROC_DOMAIN_MIGRATE_GET_COMPRESSION_CACHE = 299, /* autogen autogen */
+    REMOTE_PROC_DOMAIN_MIGRATE_SET_COMPRESSION_CACHE = 300 /* autogen autogen */
 
     /*
      * Notice how the entries are grouped in sets of 10 ?
diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs
index 54b6009..c85defd 100644
--- a/src/remote_protocol-structs
+++ b/src/remote_protocol-structs
@@ -1653,6 +1653,18 @@ struct remote_domain_migrate_set_max_downtime_args {
         uint64_t                   downtime;
         u_int                      flags;
 };
+struct remote_domain_migrate_get_compression_cache_args {
+        remote_nonnull_domain      dom;
+        u_int                      flags;
+};
+struct remote_domain_migrate_get_compression_cache_ret {
+        uint64_t                   cacheSize;
+};
+struct remote_domain_migrate_set_compression_cache_args {
+        remote_nonnull_domain      dom;
+        uint64_t                   cacheSize;
+        u_int                      flags;
+};
 struct remote_domain_migrate_set_max_speed_args {
         remote_nonnull_domain      dom;
         uint64_t                   bandwidth;
@@ -2474,4 +2486,6 @@ enum remote_procedure {
         REMOTE_PROC_DOMAIN_OPEN_CHANNEL = 296,
         REMOTE_PROC_NODE_DEVICE_LOOKUP_SCSI_HOST_BY_WWN = 297,
         REMOTE_PROC_DOMAIN_GET_JOB_STATS = 298,
+        REMOTE_PROC_DOMAIN_MIGRATE_GET_COMPRESSION_CACHE = 299,
+        REMOTE_PROC_DOMAIN_MIGRATE_SET_COMPRESSION_CACHE = 300,
 };
-- 
1.8.1.2


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