Commit 2c13012e authored by Lu Baolu's avatar Lu Baolu Committed by Joerg Roedel
Browse files

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: default avatarLu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: default avatarJason Gunthorpe <jgg@nvidia.com>
Reviewed-by: default avatarKevin Tian <kevin.tian@intel.com>
Reviewed-by: default avatarJerry Snitselaar <jsnitsel@redhat.com>
Link: https://lore.kernel.org/r/20240809055431.36513-4-baolu.lu@linux.intel.com


Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 9e74e1b8
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1440,9 +1440,9 @@ static int iommu_init_domains(struct intel_iommu *iommu)
	 * entry for first-level or pass-through translation modes should
	 * be programmed with a domain id different from those used for
	 * second-level or nested translation. We reserve a domain id for
	 * this purpose.
	 * this purpose. This domain id is also used for identity domain
	 * in legacy mode.
	 */
	if (sm_supported(iommu))
	set_bit(FLPT_DEFAULT_DID, iommu->domain_ids);

	return 0;