Skip to content

Commit 54e86bf

Browse files
LuBaolugregkh
authored andcommitted
iommu/vt-d: Always reserve a domain ID for identity setup
[ Upstream commit 2c13012 ] 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]> Signed-off-by: Sasha Levin <[email protected]>
1 parent 1c36eb1 commit 54e86bf

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
@@ -1692,10 +1692,10 @@ static int iommu_init_domains(struct intel_iommu *iommu)
16921692
* entry for first-level or pass-through translation modes should
16931693
* be programmed with a domain id different from those used for
16941694
* second-level or nested translation. We reserve a domain id for
1695-
* this purpose.
1695+
* this purpose. This domain id is also used for identity domain
1696+
* in legacy mode.
16961697
*/
1697-
if (sm_supported(iommu))
1698-
set_bit(FLPT_DEFAULT_DID, iommu->domain_ids);
1698+
set_bit(FLPT_DEFAULT_DID, iommu->domain_ids);
16991699

17001700
return 0;
17011701
}

0 commit comments

Comments
 (0)