diff --git a/src/remote/remote_driver.c b/src/remote/remote_driver.c index 81ecef15e1260c43ac27d70d586256afe7b4ac0b..0298aabfccb16f025bae00949f7649f7ca1f80c6 100644 --- a/src/remote/remote_driver.c +++ b/src/remote/remote_driver.c @@ -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 */ diff --git a/src/remote/remote_protocol.x b/src/remote/remote_protocol.x index 2e9dc1d6589f76bb57904b74b364b2a221675581..d1c77f51332b64cf68b3b21b3e2dc4c0774a1465 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 e38d24afec46afe8639dd786e5a38c8b92cfe065..86e7650ed35567f015fcf2b8a8fdb10350e7bb2f 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, };