Re: HostDevev SCSI Devices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

> On Sun, Oct 19, 2014 at 10:01:26PM +0400, Fl@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@sh

_______________________________________________
libvirt-users mailing list
libvirt-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvirt-users




[Index of Archives]     [Virt Tools]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux