]> xenbits.xensource.com Git - people/royger/xen.git/commit
VT-d / x86: re-arrange cache syncing
authorJan Beulich <jbeulich@suse.com>
Fri, 18 Feb 2022 13:18:01 +0000 (14:18 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 18 Feb 2022 13:18:01 +0000 (14:18 +0100)
commit3330013e6739661fd21a518b7e85be2ebe08c354
treee4a140bf67a423e61b8d38fb117cb18b66d91da5
parentf5592322062f7912dc45b30606f20691f6e1c3ee
VT-d / x86: re-arrange cache syncing

The actual function should always have lived in core x86 code; move it
there, replacing get_cache_line_size() by readily available (except very
early during boot; see the code comment) data. Also rename the function.

Drop the respective IOMMU hook, (re)introducing a respective boolean
instead. Replace a true and an almost open-coding instance of
iommu_sync_cache().

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/flushtlb.c
xen/arch/x86/include/asm/cache.h
xen/arch/x86/include/asm/iommu.h
xen/drivers/passthrough/vtd/extern.h
xen/drivers/passthrough/vtd/iommu.c
xen/drivers/passthrough/vtd/x86/vtd.c
xen/drivers/passthrough/x86/iommu.c
xen/include/xen/iommu.h