Boot the built kernel in QEMU and runtime-test the modules.
The build box (and this container) can't insmod the v7.3 modules into their own running kernel, but we can boot the built kernel in QEMU and load the modules there. scripts/vm-test.sh automates it end to end — no root required (QEMU is fetched with apt-get download and run from a user-local prefix; KVM is used if /dev/kvm is accessible, otherwise TCG).
scripts/vm-test.sh # pulls bzImage+modules from the build box, boots, runs tests REMOTE=root@host scripts/vm-test.sh
scripts/vm-init.sh, run as the VM init)insmod voltron.ko — version, default_mode, sysfs tree, css-offline reaper.add_node, nodes/<id>/...).add_cgroup, set mode/psi_threshold, read back).decisions/request → log/count).load/local, load/score).voltron_cgroup_lp.ko → /sys/fs/cgroup/<cg>/voltron.policy (shared store: write via cgroupfs, read back the record).rdma_rxe + rdma link add rxe0 + cluster/rdma_listen.All of the above pass. Notable things this runtime testing caught/validated:
voltron_stream_init allocated an 8 MB kfifo — order 11 > the page allocator MAX_ORDER, which WARNed and failed module load. Shrunk to 1 MB.memory.voltron.policy (cgroup-v2 prefixes subsystem cftypes); added CFTYPE_NO_PREFIX → voltron.policy.rdma_cm bind+listen) works over SoftRoCE (rxe); the unified policy store is coherent across the sysfs tree and the cgroup-fs file.A glibc-capable initramfs (QEMU + rdma/ip/voltron-agent/criu fetched via apt-get download, run from a user prefix) enables richer tests. Init scripts: scripts/vm-init-criu.sh (single VM) and scripts/vm-init-2node.sh (two VMs via QEMU -netdev socket).
vm-init-criu.sh) — agent + CRIU on real v7.3voltron.ko loads; agent **--selftest-netpin PASS and --selftest-remote-exec PASS** on the real kernel.criu --version / criu check run (CRIU is in the initramfs).criu dump/restore of a process is blocked in this minimal VM: the kernel lacks veth/nftables (net-namespace C/R) and the toy is a pid-1-session child. Needs CONFIG_VETH+NF_TABLES(+more) and running the target in its own pid/net ns. (CONFIG_CHECKPOINT_RESTORE+socket-diag were enabled for this.)--selftest-attach* (ptrace injection) pass on the host kernel but are very slow under TCG, so they're excluded from the VM run.vm-init-2node.sh) — cross-node pinning + RDMANodes linked with QEMU -netdev socket (no root/bridge needed); SoftRoCE on each.
ping round-trip).voltron-agent --run-remote (home/deputy), node B runs --serve (exec); B executes the workload whose getpid is served by A's deputy — the exec-side shell prints pid=4242 / XNODE-PIN-OK. The process runs on B while its identity/network belong to A.connect times out. Devices come up and IP works; this is a known rxe-over-emulated-NIC limitation, not a Voltron bug. Single-node rdma_listen works; the real two-node RDMA target is the ConnectX cluster (docs/TESTING.md).docs/TESTING.md).rdma/criu/voltron-ctld/voltron-psid/voltron-agent aren't in the tiny initramfs yet; the agent's userspace self-tests run on any host directly.