Skip to content

Commit 5c3687d

Browse files
jgunthorpewilldeacon
authored andcommitted
iommu/vt-d: Do not wipe out the page table NID when devices detach
The NID is used to control which NUMA node memory for the page table is allocated it from. It should be a permanent property of the page table when it was allocated and not change during attach/detach of devices. Reviewed-by: Wei Wang <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Fixes: 7c20442 ("iommu/vt-d: Add domain_alloc_paging support") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 00939be commit 5c3687d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/iommu/intel/iommu.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1391,7 +1391,6 @@ void domain_detach_iommu(struct dmar_domain *domain, struct intel_iommu *iommu)
13911391
if (--info->refcnt == 0) {
13921392
ida_free(&iommu->domain_ida, info->did);
13931393
xa_erase(&domain->iommu_array, iommu->seq_id);
1394-
domain->nid = NUMA_NO_NODE;
13951394
kfree(info);
13961395
}
13971396
}

0 commit comments

Comments
 (0)