[libvirt-users] HostDevev SCSI Devices

Fl@sh kaperang07 at gmail.com
Mon Oct 20 19:02:50 UTC 2014


On Mon, 20 Oct 2014 09:27:49 +0100
"Daniel P. Berrange" <berrange at redhat.com> wrote:

> On Sun, Oct 19, 2014 at 10:01:26PM +0400, Fl at sh wrote:
> > http://libvirt.org/formatdomain.html#elementsHostDevSubsys
.....
> You want CAP_SCSI for the actual devices.
> 
Ok. But i have new question:
XML-description into docs contains:
 ...
  <devices>
    <hostdev mode='subsystem' type='scsi' sgio='filtered'
rawio='yes'>
      <source>
        <adapter name='scsi_host0'/>
        <address type='scsi' bus='0' target='0' unit='0'/>
      </source>
      ....
  </devices>
  ...
It contain the address of device with three attributes (bus,
target and unit). But SCSI addressing contain four attributes
(host, bus, target, lun) and in XML-description from
virNodeDeviceGetXMLDesc device capabilities contain this
parameters too. Same:
...
  <capability type='scsi'>
    <host>4</host>
    <bus>0</bus>
    <target>0</target>
    <lun>0</lun>
    <type>cdrom</type>
  </capability>
...

How i can use this four parameters into XML-description of
SCSI HostDev for set device? Why in first case it have 3
attributes, but in second case it have 4 attributes?

-- 
Fl at sh




More information about the libvirt-users mailing list