roadmap BUILT

378. Read the DMAR, because a firmware checkbox is not an IOMMU

A VT-d machine makes two claims about interrupt remapping. Each unit makes one in ECAP.IR. The platform makes the other in the INTR_REMAP flag, bit 0 of the Flags field in the DMA Remapping Reporting table (DMAR). The boot prints both on each unit's iommu line, so a boot log shows whether firmware and hardware agree:

  iommu           : VT-d drhd at 0x00000000fed90000, root table default-deny, translating, interrupt remapping offered (unused), dmar INTR_REMAP set

What is built

Why

Two records waited on a fact that was not where everyone assumed. notes/x86-uefi-boot.md asked whether xenon's firmware leaves interrupt remapping off. notes/confinement-claims.md carries the same question as a fifth claim. A confined component's MSI-X write is a memory write, so DMA remapping does not cover it. VFIO refuses a device to an untrusted userspace driver on a machine without interrupt remapping for that reason. design/decisions/0086-el0-nvme-driver.md names it as the axis its options had not priced.

There is no switch to photograph. Seventy photographs of the OptiPlex 7050's setup UI contain no interrupt-remapping control. Its Virtualization Support menu has three pages: Virtualization, VT for Direct I/O, and Trusted Execution. What there is instead is a table the firmware publishes, which any kernel can read. That moves the work from the bench to a parser, which is host-testable and runs under QEMU.

What it does not do

It reads and reports. It does not enable interrupt remapping, program a remapping unit, or change any driver. Turning a unit on is a much larger piece of work.

Follow-on

Index row

Two in-tree records waited on whether xenon's firmware leaves interrupt remapping off. Its setup UI has no such switch. The answer is in a table the firmware publishes, so the work moved from the bench to a parser. The DMAR is parsed at boot (milestone 161), every unit is brought up (milestone 594), and the iommu line prints each unit's ECAP.IR (milestone 317) beside the DMAR's own INTR_REMAP flag. A boot shows whether the platform's claim and the hardware's agree.