Skip to contentSkip to conversation

vfio: Depend on EVENTFD

PATCH New Alex Williamson 1 participant 1 message Mar 17, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vfio: Depend on EVENTFD

Since commit 42ac9bd18d4f ("vfio: initialize the virqfd workqueue in VFIO generic code"), vfio itself depends on EVENTFD support. Add this to Kconfig to enforce the dependency. This could perhaps become a soft dependency if there was sufficient interest to make it more modular, but eventfds are currently an integral part of vfio interrupt delivery for all vfio bus drivers.

---
 drivers/vfio/Kconfig |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/vfio/Kconfig +1 -1
index d5322a4..db9bbb7 100644
@@ -15,7 +15,7 @@ config VFIO_SPAPR_EEH
 
 menuconfig VFIO
 	tristate "VFIO Non-Privileged userspace driver framework"
-	depends on IOMMU_API
+	depends on IOMMU_API && EVENTFD
 	select VFIO_IOMMU_TYPE1 if (X86 || S390 || ARM_SMMU)
 	select VFIO_IOMMU_SPAPR_TCE if (PPC_POWERNV || PPC_PSERIES)
 	select VFIO_SPAPR_EEH if (PPC_POWERNV || PPC_PSERIES)