[PATCH 09/10] iommu/amd: Clear the iommu pre enabled setting

Baoquan He bhe at redhat.com
Wed Sep 23 23:37:35 PDT 2015


In the first 
Now any change of domain can be updated to dev tables and io page table

Signed-off-by: Baoquan He <bhe at redhat.com>
---
 drivers/iommu/amd_iommu.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index aee1ae4..1e86f4c 100644
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -2469,6 +2469,8 @@ static dma_addr_t __map_single(struct device *dev,
 	unsigned long align_mask = 0;
 	int i;
 
+	if (translation_pre_enabled())
+		clear_translation_pre_enabled();
 	pages = iommu_num_pages(paddr, size, PAGE_SIZE);
 	paddr &= PAGE_MASK;
 
-- 
2.4.0




More information about the kexec mailing list