Skip to content

Commit ca4ddaa

Browse files
jgunthorpeAlex Williamson
authored andcommitted
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>
1 parent cc6711b commit ca4ddaa

4 files changed

Lines changed: 6 additions & 4 deletions

File tree

drivers/vfio/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ config VFIO_SPAPR_EEH
1616

1717
config VFIO_VIRQFD
1818
tristate
19-
depends on VFIO && EVENTFD
19+
depends on VFIO
20+
select EVENTFD
2021
default n
2122

2223
menuconfig VFIO

drivers/vfio/fsl-mc/Kconfig

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
config VFIO_FSL_MC
22
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
45
help
56
Driver to enable support for the VFIO QorIQ DPAA2 fsl-mc
67
(Management Complex) devices. This is required to passthrough

drivers/vfio/pci/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
config VFIO_PCI
33
tristate "VFIO support for PCI devices"
4-
depends on VFIO && PCI && EVENTFD
4+
depends on VFIO && PCI
55
depends on MMU
66
select VFIO_VIRQFD
77
select IRQ_BYPASS_MANAGER

drivers/vfio/platform/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: GPL-2.0-only
22
config VFIO_PLATFORM
33
tristate "VFIO support for platform devices"
4-
depends on VFIO && EVENTFD && (ARM || ARM64 || COMPILE_TEST)
4+
depends on VFIO && (ARM || ARM64 || COMPILE_TEST)
55
select VFIO_VIRQFD
66
help
77
Support for platform devices with VFIO. This is required to make

0 commit comments

Comments
 (0)