Commit b802d070 authored by Lu Baolu's avatar Lu Baolu Committed by Joerg Roedel

iommu/vt-d: Use iova over first level

After we make all map/unmap paths support first level page table.
Let's turn it on if hardware supports scalable mode.
Signed-off-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 64229e8f
...@@ -1770,15 +1770,13 @@ static void free_dmar_iommu(struct intel_iommu *iommu) ...@@ -1770,15 +1770,13 @@ static void free_dmar_iommu(struct intel_iommu *iommu)
/* /*
* Check and return whether first level is used by default for * Check and return whether first level is used by default for
* DMA translation. Currently, we make it off by setting * DMA translation.
* first_level_support = 0, and will change it to -1 after all
* map/unmap paths support first level page table.
*/ */
static bool first_level_by_default(void) static bool first_level_by_default(void)
{ {
struct dmar_drhd_unit *drhd; struct dmar_drhd_unit *drhd;
struct intel_iommu *iommu; struct intel_iommu *iommu;
static int first_level_support = 0; static int first_level_support = -1;
if (likely(first_level_support != -1)) if (likely(first_level_support != -1))
return first_level_support; return first_level_support;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment