commit | 4399c8bf2b9093696fa8160d79712e7346989c46 | [log] [tgz] |
---|---|---|
author | Allen Kay <allen.m.kay@intel.com> | Fri Oct 14 12:32:46 2011 -0700 |
committer | David Woodhouse <David.Woodhouse@intel.com> | Wed Oct 19 12:06:22 2011 +0100 |
tree | 66363d75fa8e346b84ba6fcdca33f78858456328 | |
parent | 8140a95d228efbcd64d84150e794761a32463947 [diff] |
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 <allen.m.kay@intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>