]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
blkiotune: add interface for blkiotune.device_weight
authorHu Tao <hutao@cn.fujitsu.com>
Tue, 8 Nov 2011 11:00:33 +0000 (19:00 +0800)
committerEric Blake <eblake@redhat.com>
Tue, 29 Nov 2011 19:26:21 +0000 (12:26 -0700)
commit6ac81c8ec861399a8195abbdfbf4588521fc84ba
treeffbf8f49af5cce0b34e15a73b42564a4700090a0
parent659ded58eda816ecd451f933984b25a2bb3db47c
blkiotune: add interface for blkiotune.device_weight

This adds per-device weights to <blkiotune>.  Note that the
cgroups implementation only supports weights per block device,
and not per-file within the device; hence this option must be
global to the domain definition rather than tied to individual
<devices>/<disk> entries:

<domain ...>
  <blkiotune>
    <device>
      <path>/path/to/block</path>
      <weight>1000</weight>
    </device>
  </blkiotune>
..

This patch also adds a parameter --device-weights to virsh command
blkiotune for setting/getting blkiotune.weight_device for any
hypervisor that supports it.  All <device> entries under
<blkiotune> are concatenated into a single string attribute under
virDomain{Get,Set}BlkioParameters, named "device_weight".

Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
include/libvirt/libvirt.h.in
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms
tests/qemuxml2argvdata/qemuxml2argv-blkiotune-device.xml [new file with mode: 0644]
tools/virsh.c
tools/virsh.pod