Skip to content

Commit

Permalink
vfio: Use select for eventfd
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jason Gunthorpe authored and Alex Williamson committed Aug 26, 2021
1 parent cc6711b commit ca4ddaa
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion drivers/vfio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ config VFIO_SPAPR_EEH

config VFIO_VIRQFD
tristate
depends on VFIO && EVENTFD
depends on VFIO
select EVENTFD
default n

menuconfig VFIO
Expand Down
3 changes: 2 additions & 1 deletion drivers/vfio/fsl-mc/Kconfig
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
config VFIO_FSL_MC
tristate "VFIO support for QorIQ DPAA2 fsl-mc bus devices"
depends on VFIO && FSL_MC_BUS && EVENTFD
depends on VFIO && FSL_MC_BUS
select EVENTFD
help
Driver to enable support for the VFIO QorIQ DPAA2 fsl-mc
(Management Complex) devices. This is required to passthrough
Expand Down
2 changes: 1 addition & 1 deletion drivers/vfio/pci/Kconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
config VFIO_PCI
tristate "VFIO support for PCI devices"
depends on VFIO && PCI && EVENTFD
depends on VFIO && PCI
depends on MMU
select VFIO_VIRQFD
select IRQ_BYPASS_MANAGER
Expand Down
2 changes: 1 addition & 1 deletion drivers/vfio/platform/Kconfig
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# SPDX-License-Identifier: GPL-2.0-only
config VFIO_PLATFORM
tristate "VFIO support for platform devices"
depends on VFIO && EVENTFD && (ARM || ARM64 || COMPILE_TEST)
depends on VFIO && (ARM || ARM64 || COMPILE_TEST)
select VFIO_VIRQFD
help
Support for platform devices with VFIO. This is required to make
Expand Down

0 comments on commit ca4ddaa

Please sign in to comment.