mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-09-09 17:24:53 +00:00
500cbc066a
The parent device needs to report the generic stuff about the supported mediated devices types, like device API, available instances, type name, etc. Therefore this patch introduces a new nested capability element of type 'mdev_types' with the resulting XML of the following format: <device> ... <capability type='pci'> ... <capability type='mdev_types'> <type id='vendor_supplied_id'> <name>optional_vendor_supplied_codename</name> <deviceAPI>vfio-pci</deviceAPI> <availableInstances>NUM</availableInstances> </type> ... <type> ... </type> </capability> </capability> ... </device> https://bugzilla.redhat.com/show_bug.cgi?id=1452072 Signed-off-by: Erik Skultety <eskultet@redhat.com>
33 lines
961 B
XML
33 lines
961 B
XML
<device>
|
|
<name>pci_0000_02_10_7</name>
|
|
<parent>pci_0000_00_04_0</parent>
|
|
<capability type='pci'>
|
|
<domain>0</domain>
|
|
<bus>2</bus>
|
|
<slot>16</slot>
|
|
<function>7</function>
|
|
<product id='0x10ca'>82576 Virtual Function</product>
|
|
<vendor id='0x8086'>Intel Corporation</vendor>
|
|
<capability type='mdev_types'>
|
|
<type id='foo1'>
|
|
<name>bar1</name>
|
|
<deviceAPI>vfio-pci</deviceAPI>
|
|
<availableInstances>1</availableInstances>
|
|
</type>
|
|
<type id='foo2'>
|
|
<name>bar2</name>
|
|
<deviceAPI>vfio-pci</deviceAPI>
|
|
<availableInstances>2</availableInstances>
|
|
</type>
|
|
</capability>
|
|
<iommuGroup number='31'>
|
|
<address domain='0x0000' bus='0x02' slot='0x10' function='0x7'/>
|
|
</iommuGroup>
|
|
<numa node='0'/>
|
|
<pci-express>
|
|
<link validity='cap' port='0' speed='2.5' width='4'/>
|
|
<link validity='sta' width='0'/>
|
|
</pci-express>
|
|
</capability>
|
|
</device>
|