1# SPDX-License-Identifier: GPL-2.0-only 2menuconfig VFIO 3 tristate "VFIO Non-Privileged userspace driver framework" 4 select IOMMU_API 5 depends on IOMMUFD || !IOMMUFD 6 select VFIO_IOMMU_TYPE1 if MMU && (X86 || S390 || ARM || ARM64) 7 select INTERVAL_TREE 8 help 9 VFIO provides a framework for secure userspace device drivers. 10 See Documentation/driver-api/vfio.rst for more details. 11 12 If you don't know what to do here, say N. 13 14if VFIO 15config VFIO_IOMMU_TYPE1 16 tristate 17 default n 18 19config VFIO_IOMMU_SPAPR_TCE 20 tristate 21 depends on SPAPR_TCE_IOMMU 22 default VFIO 23 24config VFIO_SPAPR_EEH 25 tristate 26 depends on EEH && VFIO_IOMMU_SPAPR_TCE 27 default VFIO 28 29config VFIO_VIRQFD 30 tristate 31 select EVENTFD 32 default n 33 34config VFIO_NOIOMMU 35 bool "VFIO No-IOMMU support" 36 help 37 VFIO is built on the ability to isolate devices using the IOMMU. 38 Only with an IOMMU can userspace access to DMA capable devices be 39 considered secure. VFIO No-IOMMU mode enables IOMMU groups for 40 devices without IOMMU backing for the purpose of re-using the VFIO 41 infrastructure in a non-secure mode. Use of this mode will result 42 in an unsupportable kernel and will therefore taint the kernel. 43 Device assignment to virtual machines is also not possible with 44 this mode since there is no IOMMU to provide DMA translation. 45 46 If you don't know what to do here, say N. 47 48source "drivers/vfio/pci/Kconfig" 49source "drivers/vfio/platform/Kconfig" 50source "drivers/vfio/mdev/Kconfig" 51source "drivers/vfio/fsl-mc/Kconfig" 52endif 53 54source "virt/lib/Kconfig" 55