> From: Liu, Yi L <yi.l.liu@xxxxxxxxx> > Sent: Thursday, March 28, 2024 8:30 PM > > Existing remove_dev_pasid() callbacks of the underlying iommu drivers > get the attached domain from the group->pasid_array. However, the domain > stored in group->pasid_array is not always correct in all scenarios. > A wrong domain may result in failure in remove_dev_pasid() callback. > To avoid such problems, it is more reliable to pass the domain to the > remove_dev_pasid() op. > > Suggested-by: Jason Gunthorpe <jgg@xxxxxxxxxx> > Signed-off-by: Yi Liu <yi.l.liu@xxxxxxxxx> Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>