RE: [PATCH 8/9] iommu/vt-d: Remove dmar_disabled

From: Tian, Kevin

Date: Wed Jun 17 2026 - 03:24:13 EST


> From: Baolu Lu <baolu.lu@xxxxxxxxxxxxxxx>
> Sent: Friday, June 12, 2026 10:26 PM
>
> On 6/4/2026 1:15 PM, Kevin Tian wrote:
> > It's replaced by dmar_is_disabled() now, covering both "iommu=off"
> > and "intel_iommu=off". Also remove unnecessary checks on no_iommu,
> > leaving only one exception in intel_iommu_init() which skips debugfs
> > init for "iommu=off" but not "intel_iommu=off". Keep it to avoid
> > surprise for now.
>
> As mentioned in the previous patch, dmar_is_disabled() only becomes
> meaningful for wider usage after the force_on logic has been executed,
> right? Would it be better to add a check to make it safe?
>

as replied earlier I think this part is obvious. wrong reference to it before
force_on is completed can be easily caught.