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:
Martin Kletzander
2016-03-15 12:22:03 +01:00
parent 0d8f45246a
commit d77ffb6876
11 changed files with 152 additions and 21 deletions

View 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>

View 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>