]> xenbits.xensource.com Git - libvirt.git/commit
conf: add rawio attribute to disk element of domain XML
authorTaku Izumi <izumi.taku@jp.fujitsu.com>
Tue, 31 Jan 2012 04:49:00 +0000 (23:49 -0500)
committerLaine Stump <laine@laine.org>
Tue, 31 Jan 2012 18:36:23 +0000 (13:36 -0500)
commit397e6a705b98a89c0cc6ca74db9648cf8697e214
treefc5bc6add686215fd14ddfe5c3c36823873450b1
parente545dd4ffe515f7fd59ffafc74f225638b5ec0a6
conf: add rawio attribute to disk element of domain XML

 This patch adds a new attribute "rawio" to the "disk" element
 of domain XML. Valid values of "rawio" attribute are "yes"
 and "no".
 rawio='yes' indicates the disk is desirous of CAP_SYS_RAWIO.

 If you specify the following XML:

 <disk type='block' device='lun' rawio='yes'>
  ...
 </disk>

 the domain will be granted CAP_SYS_RAWIO.
 (of course, the domain have to be executed with root privilege)

NOTE:
   - "rawio" attribute is only valid when device='lun'
   - At the moment, any other disks you won't use rawio can use rawio.

Signed-off-by: Taku Izumi <izumi.taku@jp.fujitsu.com>
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
src/conf/domain_conf.h
tests/qemuxml2argvdata/qemuxml2argv-virtio-lun.args
tests/qemuxml2argvdata/qemuxml2argv-virtio-lun.xml