Re: [PATCH 0/6] Make set_dev_pasid op supportting domain replacement

Jason Gunthorpe
2024-07-15T12:19:51Z

On Mon, Jul 15, 2024 at 04:23:07PM +0800, Yi Liu wrote:
> > Then the description is sort of like
> >
> > Replace is useful for iommufd/VFIO to provide perfect HW emulation in
> > case the VM is expecting to be able to change a PASID on the fly. As
> > AMD will only support PASID in VM's using nested translation where we
> > don't use the set_dev_pasid API leave it disabled for now.
>
> Does it apply to SMMUv3 as well? IIRC. ARM SMMUv3 also has the CD table
> (a.k.a PASID table) within the guest. And I think this is the major reason
> for your above statement. right?

It does, but it also supports replace so no need to explain why we
don't enable it :)

Jason