vfio_pci: Allow regions to add own capabilities
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Wed, 19 Dec 2018 08:52:31 +0000 (19:52 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 21 Dec 2018 05:20:47 +0000 (16:20 +1100)
commitc2c0f1cde0ef56ba5d6f553db73f51e753d7550a
tree975d29fb75d537175d8e110a6616715642529ebc
parenta15b1883fee11e07e5db7f003a863cc419647e79
vfio_pci: Allow regions to add own capabilities

VFIO regions already support region capabilities with a limited set of
fields. However the subdriver might have to report to the userspace
additional bits.

This adds an add_capability() hook to vfio_pci_regops.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
drivers/vfio/pci/vfio_pci.c
drivers/vfio/pci/vfio_pci_private.h