On Mon, Jul 24, 2023 at 12:47:06PM -0700, Nicolin Chen wrote: > Add a new IOMMU_TEST_OP_ACCESS_REPLACE_IOAS to allow replacing the > access->ioas, corresponding to the iommufd_access_replace() helper. > > Then add a replace coverage as a part of user_copy test case, which > basically repeats the copy test after replacing the old ioas with a > new one. > > Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx> > Signed-off-by: Nicolin Chen <nicolinc@xxxxxxxxxx> > --- > drivers/iommu/iommufd/iommufd_test.h | 4 +++ > drivers/iommu/iommufd/selftest.c | 19 ++++++++++++ > tools/testing/selftests/iommu/iommufd.c | 29 +++++++++++++++++-- > tools/testing/selftests/iommu/iommufd_utils.h | 19 ++++++++++++ > 4 files changed, 69 insertions(+), 2 deletions(-) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Jason