> From: Liu, Yi L <yi.l.liu@xxxxxxxxx> > Sent: Monday, October 9, 2023 4:51 PM > > This extends IOMMU_TEST_OP_MOCK_DOMAIN to accept a pasid from caller. > Hence it is able to cover the iommufd_device_bind_pasid() for SIOV > virtual devices. pasid #0 is selected to mark the physical devices, > non-zero pasid values would be considered as SIOV virtual device bind. > Will add SIOV test cases later. > ... > @@ -62,6 +62,8 @@ struct iommu_test_cmd { > __aligned_u64 length; > } add_reserved; > struct { > + /* #0 is invalid, any non-zero is meaningful */ > + __u32 default_pasid; #0 represents the physical device instead of being invalid.