mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-11 07:04:04 +08:00
iommu/vt-d: Honour intel_iommu=sp_off for non-VMM domains
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
This commit is contained in:
parent
ea8ea460c9
commit
214e39aa36
@ -1624,7 +1624,11 @@ static int domain_init(struct dmar_domain *domain, int guest_width)
|
|||||||
else
|
else
|
||||||
domain->iommu_snooping = 0;
|
domain->iommu_snooping = 0;
|
||||||
|
|
||||||
domain->iommu_superpage = fls(cap_super_page_val(iommu->cap));
|
if (intel_iommu_superpage)
|
||||||
|
domain->iommu_superpage = fls(cap_super_page_val(iommu->cap));
|
||||||
|
else
|
||||||
|
domain->iommu_superpage = 0;
|
||||||
|
|
||||||
domain->nid = iommu->node;
|
domain->nid = iommu->node;
|
||||||
|
|
||||||
/* always allocate the top pgd */
|
/* always allocate the top pgd */
|
||||||
|
Loading…
Reference in New Issue
Block a user