[libvirt] [PATCH RFC v3 5/6] qemu: Implement cfs_period and cfs_quota's modification

2011-07-18 Thread Wen Congyang
--- src/qemu/qemu_driver.c | 259 +++- 1 files changed, 234 insertions(+), 25 deletions(-) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 8d54e58..c5d0e05 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -5111,6

Re: [libvirt] [PATCH RFC v3 5/6] qemu: Implement cfs_period and cfs_quota's modification

2011-07-18 Thread Adam Litke
On 07/18/2011 04:42 AM, Wen Congyang wrote: @@ -5983,7 +6169,30 @@ out: goto cleanup; } -*nparams = 1; +if (*nparams 1) { +params[1].value.ul = period; +params[1].type = VIR_TYPED_PARAM_ULLONG; +if (virStrcpyStatic(params[1].field,

Re: [libvirt] [PATCH RFC v3 5/6] qemu: Implement cfs_period and cfs_quota's modification

2011-07-18 Thread Wen Congyang
At 07/19/2011 04:44 AM, Adam Litke Write: On 07/18/2011 04:42 AM, Wen Congyang wrote: @@ -5983,7 +6169,30 @@ out: goto cleanup; } -*nparams = 1; +if (*nparams 1) { +params[1].value.ul = period; +params[1].type = VIR_TYPED_PARAM_ULLONG; +