On Mon, Nov 04, 2024 at 05:20:32AM -0800, Yi Liu wrote: > The blocked domain can be extended to park PASID of a device to be the > DMA blocking state. By this the remove_dev_pasid() op is dropped. > > Remove PASID from old domain and device GCR3 table. No need to attach > PASID to the blocked domain as clearing PASID from GCR3 table will make > sure all DMAs for that PASID are blocked. > > Suggested-by: Jason Gunthorpe <jgg@xxxxxxxxxx> > Signed-off-by: Yi Liu <yi.l.liu@xxxxxxxxx> > --- > drivers/iommu/amd/iommu.c | 10 +++++++++- > 1 file changed, 9 insertions(+), 1 deletion(-) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Jason