On 12/12/2013 08:24 PM, Daniel P. Berrange wrote:
On Wed, Dec 11, 2013 at 04:29:50PM +0800, Gao feng wrote:
> This patch introduces virCgroupSetBlkioDeviceReadIops,
> virCgroupSetBlkioDeviceWriteIops,
> virCgroupSetBlkioDeviceReadBps and
> virCgroupSetBlkioDeviceWriteBps,
>
> we can use these interfaces to set up throttle
> blkio cgroup for domain.
>
> This patch also adds the new throttle blkio cgroup
> elements to the test xml.
>
> Signed-off-by: Guan Qiang <hzguanqiang(a)corp.netease.com>
> Signed-off-by: Gao feng <gaofeng(a)cn.fujitsu.com>
> ---
> src/libvirt_private.syms | 4 +
> src/lxc/lxc_cgroup.c | 27 ++-
> src/qemu/qemu_cgroup.c | 27 ++-
> src/util/vircgroup.c | 224 ++++++++++++++++++++-
> src/util/vircgroup.h | 16 ++
> .../qemuxml2argv-blkiotune-device.xml | 8 +
> 6 files changed, 295 insertions(+), 11 deletions(-)
ACK
Pushed, thanks!