On Fri, Oct 25, 2024 at 04:49:50PM -0700, Nicolin Chen wrote: > Implement the viommu alloc/free functions to increase/reduce refcount of > its dependent mock iommu device. User space can verify this loop via the > IOMMU_VIOMMU_TYPE_SELFTEST. > > Signed-off-by: Nicolin Chen <nicolinc@xxxxxxxxxx> > --- > drivers/iommu/iommufd/iommufd_test.h | 2 + > drivers/iommu/iommufd/selftest.c | 64 ++++++++++++++++++++++++++++ > 2 files changed, 66 insertions(+) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Jason