Files
reims-vgpu/scripts
Anees Iqbal cda0f2ff72 ✨ runtime-dead can measure the copying rails, which the capable host it runs on never takes
Component: `scripts/runtime-dead`. Script only; no Rust or C changed.

This instrument could only ever see one half of the device. Where the host can
import guest RAM, every guest window takes the import and the copying rails run
zero times — and on a host without the extension those rails are the only ones
there are. So they read cold here for a reason that has nothing to do with them
being dead, which is the class `f002f205` added to the README as reason 7.

`--import-off` exports `REIMS_VGPU_GUEST_IMPORT=off`, which AGENTS.md provides
for exactly this, and writes to `/tmp/reims-vgpu-runtime-dead-import-off`. The
separate directory is deliberate: the two reports exist to be diffed, and a run
that overwrote the other would destroy the comparison it was made for.

The guard matters more than the flag. An override that does not take is the
worst outcome available here, because the run still *succeeds* — a full report,
self-consistent counters, a directory named `-import-off`, and coverage of the
import rails it was supposed to exclude. Diffed against the ordinary run it then
shows no copying rails at all, which reads as "the copying rails are dead": the
exact conclusion the flag exists to prevent. So the run refuses unless `vk_caps`
reports `host_pointer_import=disabled_by_env` in the fail log, and prints
whichever rung it did see. The script truncates that log before the boot, so a
match is this boot's.

Verified: `bash -n` clean; the flag's `OUT_DIR` selection exercised in isolation;
`REIMS_VGPU_GUEST_IMPORT` matches `env.rs:38` and `disabled_by_env` matches
`caps/host_pointer.rs:136`; and the field name in the guard's grep is confirmed
against a real fail log, which carries exactly one
`host_pointer_import=supported` from the last driven boot.

Not verified: **the flag has not been run end to end yet.** The confirmation
guard is therefore unproven against a live import-off boot — it is checked
against the string the capable rung emits, not the disabled one. That boot is
the next thing to do and its reading belongs in the README beside the ordinary
baseline. Nothing here touches the arm64 pathway, which this instrument does not
cover at all.
2026-08-07 17:59:26 +03:00
..