mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
nodedev: Expose PCI header type
If we expose this information, which is one byte in every PCI config file, we let all mgmt apps know whether the device itself is an endpoint or not so it's easier for them to decide whether such device can be passed through into a VM (endpoint) or not (*-bridge). Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1317531 Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
15
tests/nodedevschemadata/pci_0000_00_02_0_header_type.xml
Normal file
15
tests/nodedevschemadata/pci_0000_00_02_0_header_type.xml
Normal file
@@ -0,0 +1,15 @@
|
||||
<device>
|
||||
<name>pci_0000_00_02_0</name>
|
||||
<parent>computer</parent>
|
||||
<capability type='pci'>
|
||||
<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>
|
||||
20
tests/nodedevschemadata/pci_0000_00_1c_0_header_type.xml
Normal file
20
tests/nodedevschemadata/pci_0000_00_1c_0_header_type.xml
Normal file
@@ -0,0 +1,20 @@
|
||||
<device>
|
||||
<name>pci_0000_00_1c_0</name>
|
||||
<parent>computer</parent>
|
||||
<capability type='pci'>
|
||||
<domain>0</domain>
|
||||
<bus>0</bus>
|
||||
<slot>28</slot>
|
||||
<function>0</function>
|
||||
<product id='0x8c10'>8 Series/C220 Series Chipset Family PCI Express Root Port #1</product>
|
||||
<vendor id='0x8086'>Intel Corporation</vendor>
|
||||
<iommuGroup number='8'>
|
||||
<address domain='0x0000' bus='0x00' slot='0x1c' function='0x0'/>
|
||||
</iommuGroup>
|
||||
<capability type='pci-bridge'/>
|
||||
<pci-express>
|
||||
<link validity='cap' port='1' speed='5' width='1'/>
|
||||
<link validity='sta' speed='2.5' width='1'/>
|
||||
</pci-express>
|
||||
</capability>
|
||||
</device>
|
||||
Reference in New Issue
Block a user