Re: [PATCH v5 08/12] iommufd: Enforce pasid compatible domain for PASID-capable device

Jason Gunthorpe
2024-12-13T12:40:40Z

On Fri, Dec 13, 2024 at 07:52:40AM +0000, Tian, Kevin wrote:

> I'm not sure where that requirement comes from. Does AMD require RID
> and PASID to use the same format when nesting is disabled? If yes, that's
> still a driver burden to handle, not iommufd's...

Yes, ARM and AMD require this too

The point of the iommufd enforcement of ALLOC_PAGING is to try to
discourage bad apps - ie apps that only work on Intel. We can check
the rid attach too if it is easy to do

Jason