Displaying 2 results from an estimated 2 matches for "cap_scsi".
2014 Oct 19
2
HostDevev SCSI Devices
http://libvirt.org/formatdomain.html#elementsHostDevSubsys
At this description used "drive"-typed address for SCSI.
But when i get xml-description of scsi-devices by 
<code>
unsigned int flags =
                VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_HOST ;
int ret = virConnectListAllNodeDevices
                (currWorkConnect, &nodeDevices, flags);
then get by virNodeDeviceGetXMLDesc(nodeDevices[i], 0));
</code>
i have same:
<device>
  <name>scsi_host2</name>
  <path>/sys/devices/pci0000:00/0000:00:1f.2/ata3...
2014 Oct 20
0
Re: HostDevev SCSI Devices
...> http://libvirt.org/formatdomain.html#elementsHostDevSubsys
> 
> At this description used "drive"-typed address for SCSI.
> 
> But when i get xml-description of scsi-devices by 
> <code>
> unsigned int flags =
>                 VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_HOST ;
You've asked for the SCSI HBA here - ie the drive *controller*
not the drives themselves.
    VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_HOST     = 1 << 5,  /* SCSI Host Bus Adapter */
    VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_TARGET   = 1 << 6,  /* SCSI Target */
    VIR_CONN...