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(a)redhat.com>
---
docs/schemas/nodedev.rng | 11 ++++++++
src/conf/node_device_conf.c | 20 +++++++++++++
src/conf/node_device_conf.h | 1 +
src/libvirt_private.syms | 3 ++
src/node_device/node_device_udev.c | 3 ++
src/util/virpci.c | 33 ++++++++++++++++++++++
src/util/virpci.h | 12 ++++++++
.../pci_0000_00_02_0_header_type.xml | 15 ++++++++++
.../pci_0000_00_1c_0_header_type.xml | 20 +++++++++++++
tests/nodedevxml2xmltest.c | 2 ++
10 files changed, 120 insertions(+)
create mode 100644 tests/nodedevschemadata/pci_0000_00_02_0_header_type.xml
create mode 100644 tests/nodedevschemadata/pci_0000_00_1c_0_header_type.xml