RE: [PATCH v11 7/8] iommu/vt-d: Add set_dev_pasid callback for dma domain

From: Tian, Kevin
Date: Thu Jul 27 2023 - 01:50:00 EST


> From: Jacob Pan <jacob.jun.pan@xxxxxxxxxxxxxxx>
> Sent: Tuesday, July 25, 2023 6:26 AM
>
> From: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
>
> This allows the upper layers to set a domain to a PASID of a device
> if the PASID feature is supported by the IOMMU hardware. The typical
> use cases are, for example, kernel DMA with PASID and hardware
> assisted mediated device drivers.
>
> The attaching device and pasid information is tracked in a per-domain
> list and is used for IOTLB and devTLB invalidation.
>
> Signed-off-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
> Signed-off-by: Jacob Pan <jacob.jun.pan@xxxxxxxxxxxxxxx>

Reviewed-by: Kevin Tian <kevin.tian@xxxxxxxxx>