mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-28 11:31:16 +00:00
This info can be useful to filter devices visible to mgmt clients so that they won't see devices that unsafe/not meaningful to pass thru. Provide class info the way it is provided by udev or kernel that is as single 6-digit hexadecimal. Class element is not optional. I guess this should not break users that use virNodeDeviceCreateXML because they probably specify only scsi_host capability on input and then node device driver gets other capabilities from udev after device appeared. HAL driver does not get support for the new element in this patch. Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
17 lines
492 B
XML
17 lines
492 B
XML
<device>
|
|
<name>pci_0000_00_02_0</name>
|
|
<parent>computer</parent>
|
|
<capability type='pci'>
|
|
<class>0xffffff</class>
|
|
<domain>0</domain>
|
|
<bus>0</bus>
|
|
<slot>2</slot>
|
|
<function>0</function>
|
|
<product id='0x0416'>4th Gen Core Processor Integrated Graphics Controller</product>
|
|
<vendor id='0x8086'>Intel Corporation</vendor>
|
|
<iommuGroup number='1'>
|
|
<address domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
|
|
</iommuGroup>
|
|
</capability>
|
|
</device>
|