remote-protocol: implement new BlkioParameters API

Remote protocol implementation of virDomainSetBlkioParameters and virDomainGetBlkioParameters.

Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
This commit is contained in:
Gui Jianfeng
2011-02-22 13:34:28 +08:00
committed by Eric Blake
parent 17e7556dcf
commit 5f4a48cbdf
10 changed files with 634 additions and 3 deletions

View File

@@ -70,6 +70,21 @@ struct remote_sched_param {
remote_nonnull_string field;
remote_sched_param_value value;
};
struct remote_blkio_param_value {
int type;
union {
int i;
u_int ui;
int64_t l;
uint64_t ul;
double d;
int b;
} remote_blkio_param_value_u;
};
struct remote_blkio_param {
remote_nonnull_string field;
remote_blkio_param_value value;
};
struct remote_memory_param_value {
int type;
union {
@@ -172,6 +187,26 @@ struct remote_domain_set_scheduler_parameters_args {
remote_sched_param * params_val;
} params;
};
struct remote_domain_set_blkio_parameters_args {
remote_nonnull_domain dom;
struct {
u_int params_len;
remote_blkio_param * params_val;
} params;
u_int flags;
};
struct remote_domain_get_blkio_parameters_args {
remote_nonnull_domain dom;
int nparams;
u_int flags;
};
struct remote_domain_get_blkio_parameters_ret {
struct {
u_int params_len;
remote_blkio_param * params_val;
} params;
int nparams;
};
struct remote_domain_set_memory_parameters_args {
remote_nonnull_domain dom;
struct {