[PATCH v2 0/4] Simplify the module and kconfig structure in vfio

Jason Gunthorpe
2022-10-03T15:39:57Z

This series does a little house cleaning to remove the SPAPR exported
symbols and presense in the public header file and reduce the number of
modules that comprise VFIO.

v2:
- Add stubs for vfio_virqfd_init()/vfio_virqfd_exit() so that linking
works even if vfio_pci/etc is not selected
v1: https://lore.kernel.org/r/0-v1-10a2dba77915+c23-vfio_modules_jgg@nvidia.com

Jason Gunthorpe (4):
vfio/pci: Move all the SPAPR PCI specific logic to vfio_pci_core.ko
vfio: Move vfio_spapr_iommu_eeh_ioctl into vfio_iommu_spapr_tce.c
vfio: Remove CONFIG_VFIO_SPAPR_EEH
vfio: Fold vfio_virqfd.ko into vfio.ko

drivers/vfio/Kconfig | 5 --
drivers/vfio/Makefile | 5 +-
drivers/vfio/pci/vfio_pci_priv.h | 21 ++++++
drivers/vfio/vfio.h | 13 ++++
drivers/vfio/vfio_iommu_spapr_tce.c | 75 +++++++++++++++++++
drivers/vfio/vfio_main.c | 7 ++
drivers/vfio/vfio_spapr_eeh.c | 107 ----------------------------
drivers/vfio/virqfd.c | 16 +----
include/linux/vfio.h | 23 ------
9 files changed, 119 insertions(+), 153 deletions(-)
delete mode 100644 drivers/vfio/vfio_spapr_eeh.c

base-commit: 70481365703c5a8654c2b653cd35b8ae8650b6f3
--
2.37.3