linux/tools/testing/selftests/iommu
Jason Gunthorpe afb47765f9 iommufd: Make vfio_compat's unmap succeed if the range is already empty
iommufd returns ENOENT when attempting to unmap a range that is already
empty, while vfio type1 returns success. Fix vfio_compat to match.

Fixes: d624d6652a ("iommufd: vfio container FD ioctl compatibility")
Link: https://patch.msgid.link/r/0-v1-76be45eff0be+5d-iommufd_unmap_compat_jgg@nvidia.com
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Alex Mastro <amastro@fb.com>
Reported-by: Alex Mastro <amastro@fb.com>
Closes: https://lore.kernel.org/r/aP0S5ZF9l3sWkJ1G@devgpu012.nha5.facebook.com
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2025-11-05 15:11:26 -04:00
..
.gitignore iommufd: Add a selftest 2022-11-30 20:16:49 -04:00
Makefile iommufd: IOMMU_IOAS_CHANGE_PROCESS selftest 2024-11-14 13:42:35 -04:00
config iommufd: Add config needed for iommufd_fail_nth 2024-04-14 13:52:08 -03:00
iommufd.c iommufd: Make vfio_compat's unmap succeed if the range is already empty 2025-11-05 15:11:26 -04:00
iommufd_fail_nth.c iommufd/selftest: Update the fail_nth limit 2025-09-19 10:34:49 -03:00
iommufd_utils.h iommufd/selftest: Fix ioctl return value in _test_cmd_trigger_vevents() 2025-10-20 20:01:23 -03:00