Skip to content

Commit 2c13012

Browse files
LuBaolujoergroedel
authored andcommitted
iommu/vt-d: Always reserve a domain ID for identity setup
We will use a global static identity domain. Reserve a static domain ID for it. Signed-off-by: Lu Baolu <[email protected]> Reviewed-by: Jason Gunthorpe <[email protected]> Reviewed-by: Kevin Tian <[email protected]> Reviewed-by: Jerry Snitselaar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Joerg Roedel <[email protected]>
1 parent 9e74e1b commit 2c13012

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/iommu/intel/iommu.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,10 +1440,10 @@ static int iommu_init_domains(struct intel_iommu *iommu)
14401440
* entry for first-level or pass-through translation modes should
14411441
* be programmed with a domain id different from those used for
14421442
* second-level or nested translation. We reserve a domain id for
1443-
* this purpose.
1443+
* this purpose. This domain id is also used for identity domain
1444+
* in legacy mode.
14441445
*/
1445-
if (sm_supported(iommu))
1446-
set_bit(FLPT_DEFAULT_DID, iommu->domain_ids);
1446+
set_bit(FLPT_DEFAULT_DID, iommu->domain_ids);
14471447

14481448
return 0;
14491449
}

0 commit comments

Comments
 (0)