]> xenbits.xensource.com Git - libvirt.git/commit
domain: introduce xml elements for throttle blkio cgroup
authorGao feng <gaofeng@cn.fujitsu.com>
Wed, 11 Dec 2013 08:29:49 +0000 (16:29 +0800)
committerGao feng <gaofeng@cn.fujitsu.com>
Mon, 20 Jan 2014 02:52:42 +0000 (10:52 +0800)
commitfb2fbc6d7bf2faa2b3bec9f58c3f104a9f797f2d
treeef5b773becc5ededb65ad145919b9877150cb216
parent8eaa25f2d682898372bd643a2f7a364bc4ff3354
domain: introduce xml elements for throttle blkio cgroup

This patch introduces new xml elements under <blkiotune>,
we use these new elements to setup the throttle blkio
cgroup for domain. The new blkiotune node looks like this:

<blkiotune>
  <device>
    <path>/path/to/block</path>
    <weight>1000</weight>
    <read_iops_sec>10000</read_iops_sec>
    <write_iops_sec>10000</write_iops_sec>
    <read_bytes_sec>1000000</read_bytes_sec>
    <write_bytes_sec>1000000</write_bytes_sec>
  </device>
</blkiotune>

Signed-off-by: Guan Qiang <hzguanqiang@corp.netease.com>
Signed-off-by: Gao feng <gaofeng@cn.fujitsu.com>
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h