Re: [PATCH] iommu/vt-d: Refactor PCI PRI enabling/disabling callbacks
From: Jason Gunthorpe
Date: Wed Jun 26 2024 - 09:52:40 EST
On Wed, Jun 26, 2024 at 06:53:04AM +0000, Tian, Kevin wrote:
> btw in concept PRI will not be enabled/disabled when there are
> PASIDs of this device being actively attached.
Please don't bake such an assumption in.
non-PRI paging domains can be attached to a PASID and should not
enable PRI.
PRI is enabled when the first PRI domain is attached to a RID/PASID
and disabled when the last PRI domain is detached.
Jason