[PATCH v3 08/10] Specify remote protocol for virDomainSetMemoryStatsPeriodFlags

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

 



Wire up the remote protocol
---
 src/remote/remote_driver.c   |  1 +
 src/remote/remote_protocol.x | 15 ++++++++++++++-
 src/remote_protocol-structs  |  6 ++++++
 3 files changed, 21 insertions(+), 1 deletion(-)

diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c
index 94d3b83..d9505cf 100644
--- a/src/remote/remote_driver.c
+++ b/src/remote/remote_driver.c
@@ -6561,6 +6561,7 @@ static virDriver remote_driver = {
     .domainSetMaxMemory = remoteDomainSetMaxMemory, /* 0.3.0 */
     .domainSetMemory = remoteDomainSetMemory, /* 0.3.0 */
     .domainSetMemoryFlags = remoteDomainSetMemoryFlags, /* 0.9.0 */
+    .domainSetMemoryStatsPeriod = remoteDomainSetMemoryStatsPeriod, /* 1.1.1 */
     .domainSetMemoryParameters = remoteDomainSetMemoryParameters, /* 0.8.5 */
     .domainGetMemoryParameters = remoteDomainGetMemoryParameters, /* 0.8.5 */
     .domainSetBlkioParameters = remoteDomainSetBlkioParameters, /* 0.9.0 */
diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x
index 2e9dc1d..d1c77f5 100644
--- a/src/remote/remote_protocol.x
+++ b/src/remote/remote_protocol.x
@@ -833,6 +833,12 @@ struct remote_domain_set_memory_flags_args {
     unsigned int flags;
 };
 
+struct remote_domain_set_memory_stats_period_args {
+    remote_nonnull_domain dom;
+    int period;
+    unsigned int flags;
+};
+
 struct remote_domain_get_info_args {
     remote_nonnull_domain dom;
 };
@@ -4944,6 +4950,13 @@ enum remote_procedure {
      * @generate: none
      * @acl: domain:migrate
      */
-    REMOTE_PROC_DOMAIN_MIGRATE_CONFIRM3_PARAMS = 307
+    REMOTE_PROC_DOMAIN_MIGRATE_CONFIRM3_PARAMS = 307,
 
+    /**
+     * @generate: both
+     * @acl: domain:write
+     * @acl: domain:save:!VIR_DOMAIN_AFFECT_CONFIG|VIR_DOMAIN_AFFECT_LIVE
+     * @acl: domain:save:VIR_DOMAIN_AFFECT_CONFIG
+     */
+    REMOTE_PROC_DOMAIN_SET_MEMORY_STATS_PERIOD = 308
 };
diff --git a/src/remote_protocol-structs b/src/remote_protocol-structs
index e38d24a..86e7650 100644
--- a/src/remote_protocol-structs
+++ b/src/remote_protocol-structs
@@ -500,6 +500,11 @@ struct remote_domain_set_memory_flags_args {
         uint64_t                   memory;
         u_int                      flags;
 };
+struct remote_domain_set_memory_stats_period_args {
+        remote_nonnull_domain      dom;
+        int                        period;
+        u_int                      flags;
+};
 struct remote_domain_get_info_args {
         remote_nonnull_domain      dom;
 };
@@ -2601,4 +2606,5 @@ enum remote_procedure {
         REMOTE_PROC_DOMAIN_MIGRATE_PERFORM3_PARAMS = 305,
         REMOTE_PROC_DOMAIN_MIGRATE_FINISH3_PARAMS = 306,
         REMOTE_PROC_DOMAIN_MIGRATE_CONFIRM3_PARAMS = 307,
+        REMOTE_PROC_DOMAIN_SET_MEMORY_STATS_PERIOD = 308,
 };
-- 
1.8.1.4

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[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]