Files
linux/tools/testing/selftests/iommu/config
T
Jason Gunthorpe 57f0988706 iommufd: Add a selftest
Cover the essential functionality of the iommufd with a directed test from
userspace. This aims to achieve reasonable functional coverage using the
in-kernel self test framework.

A second test does a failure injection sweep of the success paths to study
error unwind behaviors.

This allows achieving high coverage of the corner cases in pages.c.

The selftest requires CONFIG_IOMMUFD_TEST to be enabled, and several huge
pages which may require:

  echo 4 > /proc/sys/vm/nr_hugepages

Link: https://lore.kernel.org/r/[email protected]
Tested-by: Nicolin Chen <[email protected]>
Tested-by: Matthew Rosato <[email protected]> # s390
Tested-by: Yi Liu <[email protected]>
Tested-by: Eric Auger <[email protected]> # aarch64
Signed-off-by: Nicolin Chen <[email protected]>
Signed-off-by: Yi Liu <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
2022-11-30 20:16:49 -04:00

3 lines
35 B
Plaintext

CONFIG_IOMMUFD
CONFIG_IOMMUFD_TEST