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. *