Revert "iommu/vt-d: Always reserve a domain ID for identity setup"

This reverts commit 813b9de1c5.
This commit is contained in:
Ksawlii 2024-11-24 00:23:06 +01:00
parent b1b32d594d
commit ba7522fbae

View file

@ -1847,10 +1847,10 @@ 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 domain id is also used for identity domain
* in legacy mode.
* this purpose.
*/
set_bit(FLPT_DEFAULT_DID, iommu->domain_ids);
if (sm_supported(iommu))
set_bit(FLPT_DEFAULT_DID, iommu->domain_ids);
return 0;
}