From 83012a5a0a53b896c1e385e1bfef9ebb62c5a921 Mon Sep 17 00:00:00 2001 From: yliu79 Date: Fri, 17 May 2019 14:35:31 -0700 Subject: [PATCH] HV: remove unused function disable_iommu Change-Id: Ia2347008082991d56cdbfab9f9940cfccc473702 Tracked-On: #3123 Signed-off-by: yliu79 Reviewed-by: Yin Fengwei Acked-by: Eddie Dong --- hypervisor/arch/x86/vtd.c | 5 ----- hypervisor/include/arch/x86/vtd.h | 8 -------- 2 files changed, 13 deletions(-) diff --git a/hypervisor/arch/x86/vtd.c b/hypervisor/arch/x86/vtd.c index a0d896634..38c84c178 100644 --- a/hypervisor/arch/x86/vtd.c +++ b/hypervisor/arch/x86/vtd.c @@ -1301,11 +1301,6 @@ void enable_iommu(void) do_action_for_iommus(dmar_enable); } -void disable_iommu(void) -{ - do_action_for_iommus(dmar_disable); -} - void suspend_iommu(void) { do_action_for_iommus(dmar_suspend); diff --git a/hypervisor/include/arch/x86/vtd.h b/hypervisor/include/arch/x86/vtd.h index 84e29d7dc..bc681243a 100644 --- a/hypervisor/include/arch/x86/vtd.h +++ b/hypervisor/include/arch/x86/vtd.h @@ -604,14 +604,6 @@ void destroy_iommu_domain(struct iommu_domain *domain); */ void enable_iommu(void); -/** - * @brief Disable translation of IOMMUs. - * - * Disable address translation of all IOMMUs, which are not ignored on the platform. - * - */ -void disable_iommu(void); - /** * @brief Suspend IOMMUs. *