Skip to content

Simplify the module and kconfig structure in vfio

Jason Gunthorpe kvm 5 versions – Applied

Status from this message: Applied to vfio next branch for v6.2. Thanks,

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest5 patches 3 repliesApplied
  2. v45 patches 9 repliesSuperseded
  3. v35 patches 7 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v24 patches10 repliesSuperseded
v14 patches2 repliesSuperseded

Changes in v5 from the cover letter

- Reword commit messages
- Remove whitespace change from drivers/vfio/pci/vfio_pci_priv.h
v4: https://lore.kernel.org/r/[email protected]
- Copy IBM copyright header to vfio_iommu_spapr_tce.c
- Use "return" not "ret = " in vfio_spapr_ioctl_eeh_pe_op()
- Use just "#if IS_ENABLED(CONFIG_EEH)"
v3: https://lore.kernel.org/r/[email protected]
- New patch to fold SPAPR VFIO_CHECK_EXTENSION EEH code into the actual ioctl
- Remove the 'case VFIO_EEH_PE_OP' indenting level
- Just open code the calls and #ifdefs to eeh_dev_open()/release() instead of using inline wrappers
- Rebase to v6.1-rc1
v2: https://lore.kernel.org/r/[email protected]
- 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/[email protected]

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/5vfio/pci: Move all the SPAPR PCI specific logic to vfio_pci_core.kodrivers/vfio/pci/vfio_pci_core.c drivers/vfio/vfio_spapr_eeh.c include/linux/vfio.h+9 -261 reply
2/5vfio/spapr: Move VFIO_CHECK_EXTENSION into tce_iommu_ioctl()drivers/vfio/vfio_iommu_spapr_tce.c drivers/vfio/vfio_spapr_eeh.c+4 -120 replies
3/5vfio: Move vfio_spapr_iommu_eeh_ioctl into vfio_iommu_spapr_tce.cdrivers/vfio/Makefile drivers/vfio/vfio_iommu_spapr_tce.c drivers/vfio/vfio_spapr_eeh.c +1 more+53 -1030 replies
4/5vfio: Remove CONFIG_VFIO_SPAPR_EEHdrivers/vfio/Kconfig drivers/vfio/pci/vfio_pci_core.c+3 -80 replies
5/5vfio: Fold vfio_virqfd.ko into vfio.kodrivers/vfio/Kconfig drivers/vfio/Makefile drivers/vfio/vfio.h +2 more+25 -181 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigPhilippe Mathieu-DaudéCornelia Huck
1/5R-b R-b
2/5R-b R-b R-b
3/5R-b R-b
4/5R-b R-b
5/5R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/5] Simplify the module and kconfig structure in vfio

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

v5:
- Reword commit messages
- Remove whitespace change from drivers/vfio/pci/vfio_pci_priv.h
v4: https://lore.kernel.org/r/[email protected]
- Copy IBM copyright header to vfio_iommu_spapr_tce.c
- Use "return" not "ret = " in vfio_spapr_ioctl_eeh_pe_op()
- Use just "#if IS_ENABLED(CONFIG_EEH)"
v3: https://lore.kernel.org/r/[email protected]
- New patch to fold SPAPR VFIO_CHECK_EXTENSION EEH code into the actual ioctl
- Remove the 'case VFIO_EEH_PE_OP' indenting level
- Just open code the calls and #ifdefs to eeh_dev_open()/release() instead of using inline wrappers
- Rebase to v6.1-rc1
v2: https://lore.kernel.org/r/[email protected]
- 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/[email protected]

Jason Gunthorpe (5):
vfio/pci: Move all the SPAPR PCI specific logic to vfio_pci_core.ko vfio/spapr: Move VFIO_CHECK_EXTENSION into tce_iommu_ioctl()
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                |   7 +-
 drivers/vfio/Makefile               |   5 +-
 drivers/vfio/pci/vfio_pci_core.c    |  11 ++-
 drivers/vfio/vfio.h                 |  13 ++++
 drivers/vfio/vfio_iommu_spapr_tce.c |  65 ++++++++++++++---
 drivers/vfio/vfio_main.c            |   7 ++
 drivers/vfio/vfio_spapr_eeh.c       | 107 ----------------------------
 drivers/vfio/virqfd.c               |  17 +----
 include/linux/vfio.h                |  23 ------
 9 files changed, 91 insertions(+), 164 deletions(-)
 delete mode 100644 drivers/vfio/vfio_spapr_eeh.c

base-commit: 9abf2313adc1ca1b6180c508c25f22f9395cc780

Signature · 1 line
2.38.1