roadmap BUILT

594. Every VT-d unit translates its own devices

(Number provisional: minted by the lane, to be confirmed at merge.) Promoted on 2026-09-25 from the proposal every-vt-d-unit-translates-its-own-devices, which milestone 261 (the NVMe driver leaves the kernel)'s bench rehearsal filed on 2026-09-24. It also closes milestone 378 (read the DMAR on xenon)'s third item, carrying more than one DRHD. Built and proven on patagonia, then BUILT on 2026-10-04 by bench boot 1 on xenon (bench/xenon-2026-10-04/boot-e-main-clflush-1.log): both units translating, the screen intact, the NVMe confined by the catch-all. That boot needed the VT-d table write-back (Unit::publish in kernel/src/arch/x86_64/iommu.rs), which lands with this status in the same pull request; on xenon this milestone does not work without it.

Of the second kind: the machine exists and somebody has to be at it. QEMU presents one VT-d unit and no RMRRs, so the two-unit route and the RMRR path are proven on host tables and run for the first time on xenon.

What it does

The x86_64 kernel used to bring up one DRHD, the INCLUDE_PCI_ALL unit since milestone 261's rehearsal. It now brings up every unit the DMAR names, each with its own root table. Every attach goes to the unit that owns the device, by VT-d 4.1 section 8.3's rule. Each RMRR is identity-mapped for the devices it names before any unit translates. The boot tour prints one line per unit and per RMRR:

                vt-d drhd at 0xfed90000, named devices only
                vt-d drhd at 0xfed91000, all (the catch-all)
                vt-d rmrr 0xdd800000..=0xdfffffff (40960 KiB), identity-mapped for the device(s) it names
  vt-d        : drhd 0xfed90000 up (1 of 2, named devices only), translation enabled (gsts.tes confirmed), 1 rmrr device(s) identity-mapped

Those addresses are the OptiPlex 7040's, a prediction for xenon rather than a reading of it.

The pieces

A device no unit owns

The specification does not say, because by its rules there is none. Section 8.3 wants a DRHD per segment and a catch-all that takes every unnamed device; section 8.4 wants every RMRR device under some unit. Linux's answer when firmware breaks this is -ENODEV from intel_iommu_probe_device: the device is left out of the IOMMU layer and its DMA is untranslated. This kernel does the same. attach writes no context entry for it, and scope_of answers no drhd owns it, so nothing can claim it confined. Refusing it bus mastering was considered and refused. It confines nothing, and it would silence the preflight that reports the firmware's gap. The rehearsal's bypass case is this path.

Three driver defects found by reading the specification

Each was latent on QEMU and would have fired on xenon.

  1. Domain ids were the requester id. The 7040's units report CAP.ND = 2, which is 8-bit domain ids, and section 9.3 treats the unused high bits as reserved. The NVMe at 01:00.0 would have been domain 0x100, a reserved-field fault on every DMA. Each unit now hands out its own ids inside its width.
  2. GCMD was written one bit at a time. Writing a lone command bit writes zero to the rest, so a write-buffer flush would have turned translation off. Section 11.4.4's read-modify-write is now the only way a command is issued.
  3. The write-buffer flush waited for GSTS.WBFS to be set. Hardware clears it on completion. Neither QEMU nor the 7040 needs the flush, so it has never run.

It also switches off protected memory regions once translation is on, as Linux does. The 7040's units offer them and QEMU's does not.

What proves it

BUGS

Each is also written beside the code, in kernel/src/arch/x86_64/iommu.rs's BUGS or crates/machine_discovery/src/acpi.rs's.

Follow-on

Index row

The x86_64 kernel brings up every VT-d unit the DMAR names and routes each device to its owner. It identity-maps the firmware's RMRRs before translation. Reading the specification found three driver defects that would have fired on xenon, the worst a domain id too wide for its unit. Proven on host tables, under QEMU, and on xenon on 2026-10-04 once the tables were written back.