]> git.ipfire.org Git - thirdparty/libvirt.git/commit
xml: nodedev: add class info for pci capability
authorNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Tue, 19 Feb 2019 12:41:37 +0000 (15:41 +0300)
committerNikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Mon, 18 Mar 2019 08:14:58 +0000 (11:14 +0300)
commit3bd4ed4630e1445aee290ab6d91e21bdd07cabb3
tree32959a4831e065a968108e088b25a8d40881f387
parent0eca80e606cfb21c1b95d3720de9b60418a32788
xml: nodedev: add class info for pci capability

This info can be useful to filter devices visible
to mgmt clients so that they won't see devices that
unsafe/not meaningful to pass thru.

Provide class info the way it is provided by udev or
kernel that is as single 6-digit hexadecimal.

Class element is not optional. I guess this should not
break users that use virNodeDeviceCreateXML because
they probably specify only scsi_host capability on
input and then node device driver gets other capabilities
from udev after device appeared.

HAL driver does not get support for the new element in
this patch.

Signed-off-by: Nikolay Shirokovskiy <nshirokovskiy@virtuozzo.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
16 files changed:
docs/formatnode.html.in
docs/schemas/nodedev.rng
src/conf/node_device_conf.c
tests/nodedevschemadata/pci_0000_00_02_0_header_type.xml
tests/nodedevschemadata/pci_0000_00_1c_0_header_type.xml
tests/nodedevschemadata/pci_0000_02_10_7_mdev_types.xml
tests/nodedevschemadata/pci_0000_02_10_7_sriov.xml
tests/nodedevschemadata/pci_0000_02_10_7_sriov_pf_vfs_all.xml
tests/nodedevschemadata/pci_0000_02_10_7_sriov_pf_vfs_all_header_type.xml
tests/nodedevschemadata/pci_0000_02_10_7_sriov_vfs.xml
tests/nodedevschemadata/pci_0000_02_10_7_sriov_zero_vfs_max_count.xml
tests/nodedevschemadata/pci_1002_71c4.xml
tests/nodedevschemadata/pci_8086_0c0c_snd_hda_intel.xml
tests/nodedevschemadata/pci_8086_10c9_sriov_pf.xml
tests/nodedevschemadata/pci_8086_4238_pcie_wireless.xml
tests/nodedevschemadata/pci_82579LM_network_adapter.xml