]> xenbits.xensource.com Git - xen.git/commit
x86/iommu: introduce a cache sync hook
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 7 Jul 2020 12:38:34 +0000 (14:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jul 2020 12:38:34 +0000 (14:38 +0200)
commit91526b460e5009fc56edbd6809e66c327281faba
tree05100be7afa778bc52b03719626451744d9c6540
parent62298825b9a44f45761acbd758138b5ba059ebd1
x86/iommu: introduce a cache sync hook

The hook is only implemented for VT-d and it uses the already existing
iommu_sync_cache function present in VT-d code. The new hook is
added so that the cache can be flushed by code outside of VT-d when
using shared page tables.

Note that alloc_pgtable_maddr must use the now locally defined
sync_cache function, because IOMMU ops are not yet setup the first
time the function gets called during IOMMU initialization.

No functional change intended.

This is part of XSA-321.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/vtd/extern.h
xen/drivers/passthrough/vtd/iommu.c
xen/include/asm-x86/iommu.h
xen/include/xen/iommu.h