Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

vfio: Use select for eventfd

If VFIO_VIRQFD is required then turn on eventfd automatically.
The majority of kconfig users of the EVENTFD use select not depends on.

Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Link: https://lore.kernel.org/r/20210826103912.128972-12-yishaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>

authored by

Jason Gunthorpe and committed by
Alex Williamson
ca4ddaac cc6711b0

+6 -4
+2 -1
drivers/vfio/Kconfig
··· 16 16 17 17 config VFIO_VIRQFD 18 18 tristate 19 - depends on VFIO && EVENTFD 19 + depends on VFIO 20 + select EVENTFD 20 21 default n 21 22 22 23 menuconfig VFIO
+2 -1
drivers/vfio/fsl-mc/Kconfig
··· 1 1 config VFIO_FSL_MC 2 2 tristate "VFIO support for QorIQ DPAA2 fsl-mc bus devices" 3 - depends on VFIO && FSL_MC_BUS && EVENTFD 3 + depends on VFIO && FSL_MC_BUS 4 + select EVENTFD 4 5 help 5 6 Driver to enable support for the VFIO QorIQ DPAA2 fsl-mc 6 7 (Management Complex) devices. This is required to passthrough
+1 -1
drivers/vfio/pci/Kconfig
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 config VFIO_PCI 3 3 tristate "VFIO support for PCI devices" 4 - depends on VFIO && PCI && EVENTFD 4 + depends on VFIO && PCI 5 5 depends on MMU 6 6 select VFIO_VIRQFD 7 7 select IRQ_BYPASS_MANAGER
+1 -1
drivers/vfio/platform/Kconfig
··· 1 1 # SPDX-License-Identifier: GPL-2.0-only 2 2 config VFIO_PLATFORM 3 3 tristate "VFIO support for platform devices" 4 - depends on VFIO && EVENTFD && (ARM || ARM64 || COMPILE_TEST) 4 + depends on VFIO && (ARM || ARM64 || COMPILE_TEST) 5 5 select VFIO_VIRQFD 6 6 help 7 7 Support for platform devices with VFIO. This is required to make