roadmap BUILT

222. The one command a person runs before pushing has a leg that fails instead of skipping

The failure reproduces outside this project.

It was minted with no gate, on the grounds that the diagnosis was done and nothing here needed hardware this project does not have. That held: the whole of it was measured and built on patagonia, and the one thing that would have needed hardware, a GICv3 driver, was refused.

In brief. script/test --hvf fails:

qemu-system-aarch64: HVF does not support GICv2 emulation

Reproduced on 2026-09-02 with a bare qemu-system-aarch64 -machine virt,gic-version=2 -accel hvf and no nife kernel involved, on QEMU 11.1.1. The runner asks for GICv2; HVF requires GICv3.

Why it is worth a block rather than a shrug. script/gates calls this the one command a person runs before pushing, and the --hvf leg is where it reaches a real core rather than an emulated one. Today that leg is skipped by failing, which is worse than either alternative. A leg that runs tells you something, a leg that skips loudly tells you it did not, and a leg that fails tells you something is broken without saying whether it is yours. A contributor meeting this has no way to know the failure is the accelerator's constraint rather than their change.

That is AGENTS.md's third principle, the newcomer who must succeed without asking anyone, failing at the exact command the tree tells them to run.

What it needed, and what was decided

The measurement first, because the block said finding out was the first thing to do and the answer changed the decision. -machine virt,gic-version=3 had never been booted here; the note that recorded that (notes/interrupts.md) expected "a recorded failure with an error message attached". There is no error message. Under GICv3 the kernel boots the whole tour, brings four cores online, prints timer: 100 Hz tick, interrupts ON, and then takes zero interrupts and zero preemptions, with nothing faulting and nothing said. memory::gic_regions() matches the device tree node by name (intc@) and takes its first two reg blocks, so a GICv3 node hands it the distributor and the redistributor, and gic::init_this_cpu writes GICC_PMR and GICC_CTLR into registers that are not there. The real CPU interface is a set of system registers nothing touches.

So the honest limitation is not "GICv3 is unsupported". It is "GICv3 boots and silently loses every interrupt", which is the more dangerous of the two, and it makes the runner's gic-version=2 pin load-bearing rather than tidy.

The GICv3 route therefore lost, and it lost on size rather than on taste. Priced from that failure in notes/interrupts.md. A version decision at init that nothing does today, a redistributor frame per core, and a system-register CPU interface (ICC_*, which is msr/mrs and so belongs under arch/aarch64/ by rule 1 rather than beside the MMIO driver). Affinity routing replaces the eight-bit GICD_ITARGETSR mask. And both drivers coexist, because GICv2 is what the runner, the CI matrix, every recorded measurement and argon's own silicon use. Roughly ten call sites reach drivers::gic:: directly. That is a driver with its own tests and its own dispatch, not a runner flag, and building it here is the failure mode this milestone was warned about: a small number quietly growing into a large one. Proposed as its own milestone instead (see BUGS).

The loud skip won, and it reuses a mechanism this file already had rather than inventing one. script/gates has carried four hvf_missing conditions since milestone 81 (an HVF leg: the test suite on the physical core), each naming what did not run and why, with a closing line that says the run was TCG only. This is a fifth, and the four before it ask whether HVF exists where this one asks whether QEMU will start the machine the runner actually configures.

How it asks. helpers/qemu-runner-aarch64.sh grows a probe: NIFE_PROBE=1 starts that script's own $MACHINE paused (-S, so nothing executes), quits it from the monitor, and reports QEMU's own refusal. It lives beside the machine string on purpose. A probe in a script of its own would have to restate virt,accel=hvf,gic-version=2,iommu=smmuv3, and the day the runner's string changed the probe would answer about a machine nobody runs, which is a false skip. The exact shape script/lint has deleted three checks for. Nothing here tests a QEMU version number, so the answer follows QEMU and this kernel without anyone remembering to update it. It costs about fifty milliseconds, and it exits on its own, which matters because a nife kernel that reaches halt() never does.

What a contributor sees now. script/gates prints gates: SKIPPED the HVF leg (QEMU will not start the machine this leg needs. It said: qemu-system-aarch64: HVF does not support GICv2 emulation. ...) and closes with TCG only; the HVF leg was skipped. script/test --hvf still fails, because that is a thing a person typed by name and a skip would be answering a different question than the one asked, but it fails with the refusal, the sentence THIS IS NOT YOUR CHANGE, and a pointer to notes/interrupts.md.

And xtask asks the probe before it stands anything up, which turned out to matter more than it sounds. The HVF leg constructs a scanout referee and two network probers before the child, because each sets an environment variable the runner reads. Against a QEMU that never started, all three then reported their own failures: "QEMU's scanout never held the composed screen", "could not connect to 127.0.0.1:52846", "is the runner's NIFE_MCAST_PORT block attaching the injection hub?". Four confident messages about monitors and forwarded ports, not one of them the reason, on top of the correct one. That is the same defect this milestone is about, one level up, and it was only visible by running the thing.

BUGS

Follow-on

Index row

script/gates now skips the HVF leg out loud, on a probe that asks QEMU rather than a version test; GICv3 measured and refused as its own milestone