]> git.ipfire.org Git - thirdparty/linux.git/commit
iommufd/selftest: Add some tests for the dmabuf flow
authorJason Gunthorpe <jgg@nvidia.com>
Fri, 21 Nov 2025 15:51:06 +0000 (11:51 -0400)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 25 Nov 2025 15:30:16 +0000 (11:30 -0400)
commitd2041f1f11dd99076010841a86c4d02d04650814
treeb89e3d99237e4f32f6f6ea1b82c083a9edf15976
parent44ebaa1744fd79cd86d10f5453c90b8c4e22b7f4
iommufd/selftest: Add some tests for the dmabuf flow

Basic tests of establishing a dmabuf and revoking it. The selftest kernel
side provides a basic small dmabuf for this testing.

Link: https://patch.msgid.link/r/9-v2-b2c110338e3f+5c2-iommufd_dmabuf_jgg@nvidia.com
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Tested-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/iommu/iommufd/iommufd_private.h
drivers/iommu/iommufd/iommufd_test.h
drivers/iommu/iommufd/pages.c
drivers/iommu/iommufd/selftest.c
tools/testing/selftests/iommu/iommufd.c
tools/testing/selftests/iommu/iommufd_utils.h