CONFIG_IOMMUFD_DRIVER_CORE
- Depends on
IOMMU_SUPPORT
CONFIG_IOMMUFD IOMMU Userspace API
- Off
- Module
- Built in
Provides /dev/iommu, the user API to control the IOMMU subsystem as it relates to managing IO page tables that point at user space memory.
If you don't know what to do here, say N.
- Depends on
IOMMU_SUPPORT - Selects
INTERVAL_TREE if IOMMU_SUPPORT - Selects
INTERVAL_TREE_SPAN_ITER if IOMMU_SUPPORT - Selects
IOMMU_API if IOMMU_SUPPORT
If IOMMUFD
- Depends on
IOMMU_SUPPORT && IOMMUFD
CONFIG_IOMMUFD_NOIOMMU
Provides a SW-only IO page table for devices without hardware IOMMU backing. This uses the AMDV1 page table format for IOVA-to-PA lookups only, not for hardware DMA translation. To be selected by VFIO_NOIOMMU when VFIO_DEVICE_CDEV is enabled.
- Depends on
IOMMU_SUPPORT && IOMMUFD && !GENERIC_ATOMIC64 - Selects
GENERIC_PT if IOMMU_SUPPORT && IOMMUFD && !GENERIC_ATOMIC64 - Selects
IOMMU_PT if IOMMU_SUPPORT && IOMMUFD && !GENERIC_ATOMIC64 - Selects
IOMMU_PT_AMDV1 if IOMMU_SUPPORT && IOMMUFD && !GENERIC_ATOMIC64
CONFIG_IOMMUFD_VFIO_CONTAINER IOMMUFD provides the VFIO container /dev/vfio/vfio
IOMMUFD will provide /dev/vfio/vfio instead of VFIO. This relies on IOMMUFD providing compatibility emulation to give the same ioctls. It provides an option to build a kernel with legacy VFIO components removed.
IOMMUFD VFIO container emulation is known to lack certain features of the native VFIO container, such as peer-to-peer DMA mapping, PPC IOMMU support, as well as other potentially undiscovered gaps. This option is currently intended for the purpose of testing IOMMUFD with unmodified userspace supporting VFIO and making use of the Type1 VFIO IOMMU backend. General purpose enabling of this option is currently discouraged.
Unless testing IOMMUFD, say N here.
- Depends on
IOMMU_SUPPORT && IOMMUFD && VFIO_GROUP && !VFIO_CONTAINER
CONFIG_IOMMUFD_TEST IOMMU Userspace API Test support
This is dangerous, do not enable unless running tools/testing/selftests/iommu
- Depends on
IOMMU_SUPPORT && IOMMUFD && DEBUG_KERNEL && FAULT_INJECTION && RUNTIME_TESTING_MENU && (IOMMU_PT_AMDV1=y || IOMMUFD=IOMMU_PT_AMDV1) - Selects
DMA_SHARED_BUFFER if IOMMU_SUPPORT && IOMMUFD && DEBUG_KERNEL && FAULT_INJECTION && RUNTIME_TESTING_MENU && (IOMMU_PT_AMDV1=y || IOMMUFD=IOMMU_PT_AMDV1) - Selects
IOMMUFD_DRIVER if IOMMU_SUPPORT && IOMMUFD && DEBUG_KERNEL && FAULT_INJECTION && RUNTIME_TESTING_MENU && (IOMMU_PT_AMDV1=y || IOMMUFD=IOMMU_PT_AMDV1)