]> xenbits.xensource.com Git - libvirt.git/commit
blkio: Setting throttle blkio cgroup for domain
authorGao feng <gaofeng@cn.fujitsu.com>
Wed, 11 Dec 2013 08:29:50 +0000 (16:29 +0800)
committerGao feng <gaofeng@cn.fujitsu.com>
Mon, 20 Jan 2014 02:52:44 +0000 (10:52 +0800)
commit3b431929a220abd835b7fc8f5e3c66879280499b
treed8b6a6790952a9346982a45ea715f5f9d24077b5
parentfb2fbc6d7bf2faa2b3bec9f58c3f104a9f797f2d
blkio: Setting throttle blkio cgroup for domain

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@corp.netease.com>
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
src/libvirt_private.syms
src/lxc/lxc_cgroup.c
src/qemu/qemu_cgroup.c
src/util/vircgroup.c
src/util/vircgroup.h
tests/qemuxml2argvdata/qemuxml2argv-blkiotune-device.xml