]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Specify remote protocol for virDomainSetMemoryStatsPeriod
authorJohn Ferlan <jferlan@redhat.com>
Mon, 8 Jul 2013 16:42:57 +0000 (12:42 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 16 Jul 2013 12:44:53 +0000 (08:44 -0400)
Wire up the remote protocol

src/remote/remote_driver.c
src/remote/remote_protocol.x
src/remote_protocol-structs

index 81ecef15e1260c43ac27d70d586256afe7b4ac0b..0298aabfccb16f025bae00949f7649f7ca1f80c6 100644 (file)
@@ -6562,6 +6562,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 */
index 2e9dc1d6589f76bb57904b74b364b2a221675581..d1c77f51332b64cf68b3b21b3e2dc4c0774a1465 100644 (file)
@@ -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
 };
index e38d24afec46afe8639dd786e5a38c8b92cfe065..86e7650ed35567f015fcf2b8a8fdb10350e7bb2f 100644 (file)
@@ -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,
 };