vfio-pci/zdev: Add zPCI capabilities to VFIO_DEVICE_GET_INFO
authorMatthew Rosato <mjrosato@linux.ibm.com>
Wed, 7 Oct 2020 18:56:23 +0000 (14:56 -0400)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 12 Oct 2020 17:37:59 +0000 (11:37 -0600)
commite6b817d4b8217a9528fcfd59719b924ab8a5ff23
tree9ac25f235f94ebf3835c481fe196ed54b2820888
parent0c633f0be1dc70a6db46d90dba4cdae82073350a
vfio-pci/zdev: Add zPCI capabilities to VFIO_DEVICE_GET_INFO

Define a new configuration entry VFIO_PCI_ZDEV for VFIO/PCI.

When this s390-only feature is configured we add capabilities to the
VFIO_DEVICE_GET_INFO ioctl that describe features of the associated
zPCI device and its underlying hardware.

This patch is based on work previously done by Pierre Morel.

Signed-off-by: Matthew Rosato <mjrosato@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/pci/Kconfig
drivers/vfio/pci/Makefile
drivers/vfio/pci/vfio_pci.c
drivers/vfio/pci/vfio_pci_private.h
drivers/vfio/pci/vfio_pci_zdev.c [new file with mode: 0644]