mbox series

[v3,0/3] vfio: Cleanup Kconfigs

Message ID 20230614193948.477036-1-alex.williamson@redhat.com (mailing list archive)
Headers show
Series vfio: Cleanup Kconfigs | expand

Message

Alex Williamson June 14, 2023, 7:39 p.m. UTC
Create sub-menus for bus drivers and remove artificial dependencies
between vfio-pci and vfio-platform and other variant drivers like
vfio-amba, mlx5-vfio-pci, or hisi-acc-vfio-pci.

This is an alternative proposal vs [1], which attempts to make the
vfio-pci-core module individually selectable, even without built
dependencies, in order to avoid the select per variant module.

The solution presented here is my preference, I don't see the select as
overly burdensome or error prone, we have very good randconfig test
coverage, and I prefer to not allow building module which have no
in-kernel requirements.  Thanks,

Alex

v3: Move the depends line up to the menu level for fsl Kconfig as
    discussed with Cedric in v2.  Add R-bs.

v2: Move dependencies from config VFIO_PLATFORM to menu, make existing
    platform reset drivers depend on VFIO_PLATFORM.  Add R-bs.

[1]https://lore.kernel.org/all/0-v1-7eacf832787f+86-vfio_pci_kconfig_jgg@nvidia.com/


Alex Williamson (3):
  vfio/pci: Cleanup Kconfig
  vfio/platform: Cleanup Kconfig
  vfio/fsl: Create Kconfig sub-menu

 drivers/vfio/Makefile               |  4 ++--
 drivers/vfio/fsl-mc/Kconfig         |  6 +++++-
 drivers/vfio/pci/Kconfig            |  8 ++++++--
 drivers/vfio/pci/hisilicon/Kconfig  |  4 ++--
 drivers/vfio/pci/mlx5/Kconfig       |  2 +-
 drivers/vfio/platform/Kconfig       | 18 ++++++++++++++----
 drivers/vfio/platform/Makefile      |  9 +++------
 drivers/vfio/platform/reset/Kconfig |  2 ++
 8 files changed, 35 insertions(+), 18 deletions(-)