]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: Introduce the mdev capability to a PCI parent device
authorErik Skultety <eskultet@redhat.com>
Mon, 6 Mar 2017 16:17:34 +0000 (17:17 +0100)
committerErik Skultety <eskultet@redhat.com>
Thu, 18 May 2017 10:21:33 +0000 (12:21 +0200)
commit500cbc066a5362834462c4eefb260b7c96a8554f
treeab858c65492b2f393c55dee0b229e406761c519a
parent4385df97fed24279fa8595a1a49c9f9b3eba5be1
nodedev: Introduce the mdev capability to a PCI parent device

The parent device needs to report the generic stuff about the supported
mediated devices types, like device API, available instances, type name,
etc. Therefore this patch introduces a new nested capability element of
type 'mdev_types' with the resulting XML of the following format:

<device>
  ...
  <capability type='pci'>
    ...
    <capability type='mdev_types'>
      <type id='vendor_supplied_id'>
        <name>optional_vendor_supplied_codename</name>
        <deviceAPI>vfio-pci</deviceAPI>
        <availableInstances>NUM</availableInstances>
      </type>
        ...
      <type>
        ...
      </type>
    </capability>
  </capability>
  ...
</device>

https://bugzilla.redhat.com/show_bug.cgi?id=1452072

Signed-off-by: Erik Skultety <eskultet@redhat.com>
docs/schemas/nodedev.rng
src/conf/node_device_conf.c
src/conf/node_device_conf.h
src/conf/virnodedeviceobj.c
src/libvirt_private.syms
src/node_device/node_device_udev.c
tests/nodedevschemadata/pci_0000_02_10_7_mdev_types.xml [new file with mode: 0644]
tests/nodedevxml2xmltest.c