]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
vfio: selftests: Add iommufd mode
authorDavid Matlack <dmatlack@google.com>
Fri, 22 Aug 2025 21:25:15 +0000 (21:25 +0000)
committerAlex Williamson <alex.williamson@redhat.com>
Wed, 27 Aug 2025 18:14:11 +0000 (12:14 -0600)
commit61cbfe5014cbc17b376b6a9b2087f39f379a6b86
tree66ba15501429094b7f5dedd73a32a25c498f3a06
parentd1a17495bb878542898d7ca4aa8fde29423a8ee0
vfio: selftests: Add iommufd mode

Add a new IOMMU mode for using iommufd directly. In this mode userspace
opens /dev/iommu and binds it to a device FD acquired through
/dev/vfio/devices/vfioX.

Acked-by: Shuah Khan <skhan@linuxfoundation.org>
Signed-off-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20250822212518.4156428-29-dmatlack@google.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
tools/testing/selftests/vfio/lib/include/vfio_util.h
tools/testing/selftests/vfio/lib/vfio_pci_device.c