From: Allen Kay Date: Fri, 14 Oct 2011 19:32:46 +0000 (-0700) Subject: intel-iommu: fix superpage support in pfn_to_dma_pte() X-Git-Tag: v3.1~1^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4399c8bf2b9093696fa8160d79712e7346989c46;p=pandora-kernel.git intel-iommu: fix superpage support in pfn_to_dma_pte() If target_level == 0, current code breaks out of the while-loop if SUPERPAGE bit is set. We should also break out if PTE is not present. If we don't do this, KVM calls to iommu_iova_to_phys() will cause pfn_to_dma_pte() to create mapping for 4KiB pages. Signed-off-by: Allen Kay Signed-off-by: David Woodhouse --- Reading git-diff-tree failed