[libvirt] [PATCH 1/4] conf: add rawio attribute to disk element of domain XML

2012-01-30 Thread Taku Izumi
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

Re: [libvirt] [PATCH 1/4] conf: add rawio attribute to disk element of domain XML

2012-01-30 Thread Paolo Bonzini
On 01/30/2012 10:08 AM, Taku Izumi wrote: +/* cap_sys_rawio check */ +if (disk-rawio == 1 +(def-process_caps (1ULL CAP_SYS_RAWIO)) == 0) { +def-process_caps |= (1ULL CAP_SYS_RAWIO); +VIR_WARN(domain %s will be granted CAP_SYS_RAWIO,

Re: [libvirt] [PATCH 1/4] conf: add rawio attribute to disk element of domain XML

2012-01-30 Thread Daniel P. Berrange
On Mon, Jan 30, 2012 at 06:08:35PM +0900, Taku Izumi wrote: 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

Re: [libvirt] [PATCH 1/4] conf: add rawio attribute to disk element of domain XML

2012-01-30 Thread Eric Blake
On 01/30/2012 02:08 AM, Taku Izumi wrote: 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'