iommu/vt-d: Add __iommu_flush_iotlb_psi()
authorYi Liu <yi.l.liu@intel.com>
Mon, 19 Feb 2024 11:15:53 +0000 (19:15 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 21 Feb 2024 09:28:43 +0000 (10:28 +0100)
commit0455d317f533e4427ddaa805563ff48711f05810
tree3d3f1dcd2d81afb74a0def7644f3314e3655c346
parent85ce8e1d6d73e8d54cb244d10dd4021771231746
iommu/vt-d: Add __iommu_flush_iotlb_psi()

Add __iommu_flush_iotlb_psi() to do the psi iotlb flush with a DID input
rather than calculating it within the helper.

This is useful when flushing cache for parent domain which reuses DIDs of
its nested domains.

Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20240208082307.15759-3-yi.l.liu@intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c