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

From: Yi Liu
Date: Mon Dec 25 2023 - 23:12:23 EST


On 2023/12/22 14:04, Tian, Kevin wrote:
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().

yes, it is. May be as below:

This makes the pasid based cache invalidation and device TLB invalidation
to return QI faults to callers.

Then the subject may be:

iommu/vt-d: Convert stage-1 cache invalidation to return QI fault


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>

--
Regards,
Yi Liu