1 # SPDX-License-Identifier: GPL-2.0-only
3 tristate "IOMMU Userspace API"
5 select INTERVAL_TREE_SPAN_ITER
9 Provides /dev/iommu, the user API to control the IOMMU subsystem as
10 it relates to managing IO page tables that point at user space memory.
12 If you don't know what to do here, say N.
15 config IOMMUFD_VFIO_CONTAINER
16 bool "IOMMUFD provides the VFIO container /dev/vfio/vfio"
17 depends on VFIO_GROUP && !VFIO_CONTAINER
18 default VFIO_GROUP && !VFIO_CONTAINER
20 IOMMUFD will provide /dev/vfio/vfio instead of VFIO. This relies on
21 IOMMUFD providing compatibility emulation to give the same ioctls.
22 It provides an option to build a kernel with legacy VFIO components
25 IOMMUFD VFIO container emulation is known to lack certain features
26 of the native VFIO container, such as peer-to-peer
27 DMA mapping, PPC IOMMU support, as well as other potentially
28 undiscovered gaps. This option is currently intended for the
29 purpose of testing IOMMUFD with unmodified userspace supporting VFIO
30 and making use of the Type1 VFIO IOMMU backend. General purpose
31 enabling of this option is currently discouraged.
33 Unless testing IOMMUFD, say N here.
36 bool "IOMMU Userspace API Test support"
37 depends on DEBUG_KERNEL
38 depends on FAULT_INJECTION
39 depends on RUNTIME_TESTING_MENU
43 This is dangerous, do not enable unless running
44 tools/testing/selftests/iommu