]> xenbits.xensource.com Git - libvirt.git/commit
nodedev: Expose PCI header type
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 15 Mar 2016 11:22:03 +0000 (12:22 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Fri, 18 Mar 2016 16:35:06 +0000 (17:35 +0100)
commitd77ffb6876e87a5c6f4c74c49cf0d89ade4f8326
treee30c25f274b49cf8c7e26dcb3a820384c71a3f0d
parent0d8f45246a74b627e62eccef2bb19068690312e2
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>
docs/formatnode.html.in
docs/schemas/nodedev.rng
src/conf/node_device_conf.c
src/conf/node_device_conf.h
src/libvirt_private.syms
src/node_device/node_device_udev.c
src/util/virpci.c
src/util/virpci.h
tests/nodedevschemadata/pci_0000_00_02_0_header_type.xml [new file with mode: 0644]
tests/nodedevschemadata/pci_0000_00_1c_0_header_type.xml [new file with mode: 0644]
tests/nodedevxml2xmltest.c