> From: Jacob Pan <jacob.jun.pan@xxxxxxxxxxxxxxx> > Sent: Saturday, June 3, 2023 2:22 AM > > From: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx> > > The VT-d spec requires to use PASID-based-IOTLB invalidation descriptor > to invalidate IOTLB and the paging-structure caches for a first-stage > page table. Add a generic helper to do this. > > RID2PASID is used if the domain has been attached to a physical device, > otherwise real PASIDs that the domain has been attached to will be used. > > Signed-off-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx> > Signed-off-by: Jacob Pan <jacob.jun.pan@xxxxxxxxxxxxxxx> Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>