intel-iommu: fix superpage support in pfn_to_dma_pte()
authorAllen Kay <allen.m.kay@intel.com>
Fri, 14 Oct 2011 19:32:46 +0000 (12:32 -0700)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Wed, 19 Oct 2011 11:06:22 +0000 (12:06 +0100)
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 <allen.m.kay@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>

No differences found