mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user