mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 17:34:18 +03:00
3bd4ed4630
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>
28 lines
1.1 KiB
XML
28 lines
1.1 KiB
XML
<device>
|
|
<name>pci_0000_03_00_0</name>
|
|
<parent>pci_0000_00_1c_1</parent>
|
|
<capability type='pci'>
|
|
<class>0xffffff</class>
|
|
<domain>0</domain>
|
|
<bus>3</bus>
|
|
<slot>0</slot>
|
|
<function>0</function>
|
|
<product id='0x4238'>Centrino Ultimate-N 6300</product>
|
|
<vendor id='0x8086'>Intel Corporation</vendor>
|
|
<iommuGroup number='8'>
|
|
<address domain='0x0000' bus='0x00' slot='0x1c' function='0x0'/>
|
|
<address domain='0x0000' bus='0x00' slot='0x1c' function='0x1'/>
|
|
<address domain='0x0000' bus='0x00' slot='0x1c' function='0x3'/>
|
|
<address domain='0x0000' bus='0x00' slot='0x1c' function='0x4'/>
|
|
<address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
|
|
<address domain='0x0000' bus='0x0d' slot='0x00' function='0x0'/>
|
|
<address domain='0x0000' bus='0x0d' slot='0x00' function='0x1'/>
|
|
<address domain='0x0000' bus='0x0d' slot='0x00' function='0x3'/>
|
|
</iommuGroup>
|
|
<pci-express>
|
|
<link validity='cap' port='1' speed='2.5' width='1'/>
|
|
<link validity='sta' speed='2.5' width='1'/>
|
|
</pci-express>
|
|
</capability>
|
|
</device>
|