Files
nvdriver/reports/timer-timeout-vgx-analysis.txt
nvidia-driver-rs 4526e6a816 Baseline: validated 30/30 tree with passing Level 7 hardware regression
- Updated tools/post_reboot.sh to check kernel oops taint bit and stuck driver tasks instead of <86400s uptime
- Level 7 hardware regression passed on 0000:b3:00.0 (module 37e6fa430835eee2b426019db3ad70eeb7a9e9070c09c84bd9b973cf56cbe529, 107 inventory words, 0 static mismatches, CUDA baseline verified before and after)
- Updated .gitignore to exclude build archives (*.a, *.rlib), __pycache__, and raw trace dumps
2026-11-23 23:48:38 +00:00

89 lines
5.3 KiB
Plaintext

Closed580 timeout hypervisor detector: implementation and build provenance
Result
------
_nv036619rm does not inspect a GPU, CPUID, Linux guest/native state, PCI VF state,
a registry value, or an OBJHYPERVISOR instance. It is a nine-byte ENDBR64 plus
JMP tail-forwarder to the OS import os_is_vgx_hyper. The original timeout default
provider _nv049687rm calls this predicate; its implementation is a build-product
fact. Consequently a concrete standalone Linux provider can be implemented now
without inventing an ordinary/native=false runtime observation.
Primary evidence
----------------
Fresh REA original RM instructions, reports/timer-timeout-vgx-rea/index.json:
_nv036619rm mapped 06ee5c70, text offset d76460, bytes f30f1efae900000000;
relocation +5 -> os_is_vgx_hyper -4;
evidence ev_a3227bd7e03bc293733759c6bae804181cfbb1e56310da621ca6810a30f8e8a8.
The REA provider used a private copy of the existing project and was closed and
reset; full inline evidence and server identity are retained.
The extracted closed distribution's kernel/nvidia/os-interface.c:1320 defines
os_is_vgx_hyper as NV_TRUE under NV_VGX_HYPER, NV_FALSE otherwise. Its actual
kernel/common/inc/nv-linux.h:1639 defines NV_VGX_HYPER iff any of:
NV_DOM0_KERNEL_PRESENT, NV_VGPU_KVM_BUILD, NV_DEVICE_VM_BUILD.
These are not inferred runtime hardware/hypervisor capabilities.
Actual kernel/conftest.sh:721-748 implements the three defines from respectively
VGX_BUILD, VGX_KVM_BUILD, VGX_DEVICE_VM_BUILD using [ -n "$VARIABLE" ]. Unset and
empty are false; any nonempty byte string, including '0', spaces, tabs, quotes,
and newlines, is true. The matching closed nvidia/nvidia.Kbuild:224-225,240
requests these three conftests. NV_DOM0_KERNEL_PRESENT here derives from VGX_BUILD;
it must not be replaced by CONFIG_XEN_DOM0. The currently installed kernel config
has Xen/DOM0 capabilities even though this installed driver's predicate is false.
Matching580 public source corroborates the named bridge:
reference/open-gpu-kernel-modules-580.178.04/src/nvidia/arch/nvalloc/unix/src/
os-hypervisor.c:65 hypervisorIsVgxHyper_IMPL returns os_is_vgx_hyper().
The user's ~/open-gpu-kernel-modules checkout is a different release and supplies
architecture/build guidance only, not this release's authoritative behavior.
Static bytes of the actual installed580 nvidia.ko prove its own predicate returns
zero: __fentry__ call; push rbp; xor eax,eax; mov rsp,rbp; pop rbp; jump to return
thunk. This is stronger than assuming the host is native. Exact module hash,
bytes, symbol boundaries and relocations are in timer-timeout-vgx-binary-evidence.json.
No loaded-driver call, GPU access, rebind, or hardware write was performed.
Production implementation
-------------------------
src/nvidia/kernel/hypervisor.rs exposes BuildProduct::current(), returning an
immutable private-field receipt only when the build resolver emitted its resolved
cfg sentinel. Without the sentinel it returns UnresolvedBuildProduct, never an
invented false result. is_vgx_hyper() is the original OR. roles() retains all three
resolved product facts. No GPU or hypervisor object lifetime is required.
utils.mk runs tools/timer-timeout-build-product.py with safely quoted resolved
Make values. Inherited environment values and explicit make NAME=value overrides
both work. GNU Make itself strips leading whitespace in command-line assignments;
we preserve the value Make actually resolves, exactly as a Make-launched conftest
would receive it. Inherited whitespace-only environment values remain enabled.
No trimming or boolean-string parsing is performed by the resolver.
The stable JSON receipt changes only when resolved roles change. Target-specific
.EXTRA_PREREQS makes Rust artifacts depend on it while preserving $< and the
original default Make target. Unchanged roles do not force rebuilds; role changes
do. Simultaneous builds of different product roles require separate build trees,
just as they require separate output artifacts generally. Receipt contents are
written by atomic same-filesystem replacement, so readers never see partial JSON.
Kernel timeout runtime can implement config::Hypervisor directly for BuildProduct
and return the actual is_vgx_hyper value. Root owns common module imports and the
kernel_transport worker owns that narrow runtime integration. This provider does
not create a GPU-ready state or claim complete timeout/hardware initialization.
Validation and scope
--------------------
tools/test_timer_timeout_vgx.py extracts and executes the actual three shell
conftest branches, compiles the exact original OS C body under all eight product
combinations, and compiles the actual Rust provider in eight resolved combinations
plus missing-configuration mode. It compares 512 environment cases and 343 Make
command-line cases including metacharacters/newlines without shell execution;
it also checks receipt stability, changed-role invalidation, default target and
first-prerequisite behavior in a private temporary build tree. Nonordinary product
profiles are compile/CPU-only tests, not supported-vGPU hardware claims.
The original whole timeout default provider and the broader per-GPU live policy
facts remain independently owned by the timeout runtime work. The new tests prove
this detector/configuration boundary, not the entire original driver or full
matrix of hypervisor products.