summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorYi Liu <yi.l.liu@intel.com>2024-02-19 14:15:54 +0300
committerJoerg Roedel <jroedel@suse.de>2024-02-21 12:28:44 +0300
commit821985301124c0a5e7ca15fc69a9a531e9442d70 (patch)
treeb394660d9f488dfd1f0eb81285650252aeda257b /scripts
parent0455d317f533e4427ddaa805563ff48711f05810 (diff)
downloadlinux-821985301124c0a5e7ca15fc69a9a531e9442d70.tar.xz
iommu/vt-d: Add missing iotlb flush for parent domain
If a domain is used as the parent in nested translation its mappings might be cached using DID of the nested domain. But the existing code ignores this fact to only invalidate the iotlb entries tagged by the domain's own DID. Loop the s1_domains list, if any, to invalidate all iotlb entries related to the target s2 address range. According to VT-d spec there is no need for software to explicitly flush the affected s1 cache. It's implicitly done by HW when s2 cache is invalidated. Fixes: b41e38e22539 ("iommu/vt-d: Add nested domain allocation") 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-4-yi.l.liu@intel.com Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions