From 1a99288d645722972209682c301c5d5922a9eecc Mon Sep 17 00:00:00 2001 From: Binbin Wu Date: Sun, 18 Aug 2019 14:00:08 +0800 Subject: [PATCH] hv: vtd: remove global cache invalidation per vm Cacheline is flushed on EPT entry change, no need to invalidate cache globally when VM created per VM. Tracked-On: #4120 Signed-off-by: Binbin Wu Reviewed-by: Anthony Xu --- hypervisor/arch/x86/vtd.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/hypervisor/arch/x86/vtd.c b/hypervisor/arch/x86/vtd.c index b0e3f9eca..ec200d508 100644 --- a/hypervisor/arch/x86/vtd.c +++ b/hypervisor/arch/x86/vtd.c @@ -1289,9 +1289,6 @@ int32_t move_pt_device(const struct iommu_domain *from_domain, struct iommu_doma void enable_iommu(void) { - if (!iommu_page_walk_coherent) { - cache_flush_invalidate_all(); - } do_action_for_iommus(dmar_enable); }