Commit 214e39aa authored by David Woodhouse's avatar David Woodhouse

iommu/vt-d: Honour intel_iommu=sp_off for non-VMM domains

Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent ea8ea460
......@@ -1624,7 +1624,11 @@ static int domain_init(struct dmar_domain *domain, int guest_width)
else
domain->iommu_snooping = 0;
if (intel_iommu_superpage)
domain->iommu_superpage = fls(cap_super_page_val(iommu->cap));
else
domain->iommu_superpage = 0;
domain->nid = iommu->node;
/* always allocate the top pgd */
......
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