Kconfig

If IOMMUFD

CONFIG_IOMMUFD_NOIOMMU

On

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.

CONFIG_IOMMUFD_VFIO_CONTAINER IOMMUFD provides the VFIO container /dev/vfio/vfio

Unknown

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.

CONFIG_IOMMUFD_TEST IOMMU Userspace API Test support

On

This is dangerous, do not enable unless running tools/testing/selftests/iommu