Re: [PATCH v3] iommu/vt-d: Make DMAR_UNITS_SUPPORTED a config setting

From: Baolu Lu
Date: Thu Jun 23 2022 - 00:43:31 EST


On 2022/6/23 10:51, Jerry Snitselaar wrote:
The real problem here is that the iommu sequence ID overflows if
DMAR_UNITS_SUPPORTED is not big enough. This is purely a software
implementation issue, I am not sure whether user opt-in when building a
kernel package could help a lot here.

Is this something that could be figured out when parsing the dmar
table? It looks like currently iommu_refcnt[], iommu_did[], and
dmar_seq_ids[] depend on it.

That's definitely a better solution.

Best regards,
baolu