RE: [PATCH v7 8/9] iommu/vt-d: Convert pasid based cache invalidation to return QI fault

From: Tian, Kevin
Date: Fri Dec 22 2023 - 01:04:17 EST


> From: Liu, Yi L <yi.l.liu@xxxxxxxxx>
> Sent: Thursday, December 21, 2023 11:40 PM
>
> From: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
>
> This makes the pasid based cache invalidation to return QI faults to callers.

it's not just for pasid cache invalidation, e.g. there is also change on
qi_flush_dev_iotlb().

> This is needed when usersapce wants to invalidate cache after modifying the
> stage-1 page table used in nested translation.
>
> Signed-off-by: Lu Baolu <baolu.lu@xxxxxxxxxxxxxxx>
> Signed-off-by: Yi Liu <yi.l.liu@xxxxxxxxx>

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