summaryrefslogtreecommitdiffstats
path: root/kernel/version/version.h
diff options
context:
space:
mode:
authorArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-29 08:53:11 -0400
committerArthur Hanson Rasmusson <arthur@vgpu.io>2026-09-29 08:53:11 -0400
commit26fce4914011914bb1e2ee520fe62e790326877e (patch)
tree1151ba10251bbad9cd127abdf8a5ecf39b2d2947 /kernel/version/version.h
parent64bcfd6fd72546a2758d664bea39354604babcda (diff)
downloadopen-iov-26fce4914011914bb1e2ee520fe62e790326877e.tar.gz
open-iov-26fce4914011914bb1e2ee520fe62e790326877e.zip
tools: durable guest counter enumeration/injection and VA reader
The counter enumeration/injection workflow lived in the guest's /tmp and was lost on every restart. Make it durable under tools/guest-diag: - sem_counters.py: translate a process's per-channel u32 completion counters (16-byte stride in the /dev/nvidiactl counter page) to guest PAs through /proc/<pid>/pagemap; --pairs emits handle,va,pa triples. - sem_slots.py: read/write the counter slots via /proc/<pid>/mem (fallback for the host counter publish). - read_va.py: hex dump a process VA (UVM sysmem GPU VAs are usually valid CPU VAs in the owning process); --u32 for method streams. - inject_counters.sh: host-side one-shot: push the tool, take the GR handles from the live chan_dump, enumerate, then register each counter with sema_counter and pin its VA with sema_map_add. - push_guest_tools.sh: push the new tools after every VM start. - launch_qemu_direct.sh: parameterized mdev UUID/paths instead of a stale hardcoded one; committed so it survives checkouts.
Diffstat (limited to 'kernel/version/version.h')
0 files changed, 0 insertions, 0 deletions