]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
vfio: Use select for eventfd
authorJason Gunthorpe <jgg@nvidia.com>
Thu, 26 Aug 2021 10:39:10 +0000 (13:39 +0300)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 26 Aug 2021 16:36:51 +0000 (10:36 -0600)
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>
drivers/vfio/Kconfig
drivers/vfio/fsl-mc/Kconfig
drivers/vfio/pci/Kconfig
drivers/vfio/platform/Kconfig

index e44bf736e2b222e42e0727136ce5bdd43b319236..698ca35b3f03189fe04c6b0e529e3a21e0cb9e4b 100644 (file)
@@ -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
index b1a527d6b6f26efa71b0a92db98ffdffd1b40358..6df66813c88276ac76e50410a6fae37dbe42c898 100644 (file)
@@ -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
index 5e2e1b9a9fd3af111dfee7385f315cbfed1f792d..d208a95a2767b53c66f2d8233cd52c84aa15d949 100644 (file)
@@ -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
index ab341108a0be9497205752946f98f5ed85803fe9..7f78eb96a5d5bd8fb7a9b44b55f65eee17d50469 100644 (file)
@@ -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