You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit fe3ef7f
Browse filesBrowse the repository at this point in the historyBrowse files
nix: homa-lifecycle, timed phases over ttyS0 and a virtio console
Following the pcp lifecycle tests: the guest gets two consoles on host TCP ports. ttyS0
stays the only kernel console and QEMU logs it to serial.log from the first byte; hvc0 is
a virtio console with a root shell that the host drives:
1 start, 2 serial, 2b virtio, 3 smoke (homa-smoke over hvc0), 4 module cycles
(insmod / netns add+del / rmmod x5), 5 dmesg, 6 poweroff, 7 qemu exit, 8 serial log
Each phase has its own timeout and time; phases that need the shell are skipped once it
is gone, and phase 8 still catches oopses after that (late RCU callbacks, F8). Reading
dmesg over hvc0 takes about 200 ms instead of seconds at 115200 baud.
On main, phase 3 crashes in homa_route_free (F8). With the fork #22 fix all 9 phases
pass in about 22 s, and homa-vm-matrix (now with homa-lifecycle-<series>) is 8/8 in 51 s.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: nix/STATUS.md
+32-2Lines changed: 32 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,8 @@ Related docs:
33
33
| Single VM |`homa-microvm-test-{6_12,7_3}`| ✅ insmod, loopback echo, netns/veth with GRO+RPS (about 1.7k `homa_gro_receive` and 460 `homa_set_softirq_cpu` calls), rmmod, clean dmesg |
34
34
| Two VMs |`homa-pair-test-<server>-<client>`| ✅ all four 6.12/7.3 pairings: ping, echo 100 B–1 MB, cp_node w4 over Homa and over TCP, clean dmesg on both. 8 VMs in parallel finish in 50 s |
35
35
| Latency sweep |`homa-pair-exp`, `homa-pair-exp-socket`| ✅ F2 explained: QEMU's TCP `socket` link stalls packets; over the UDP `dgram` link (now the default) Homa's P50 matches TCP's |
36
-
| VM matrix |`homa-vm-matrix`| ❌ on `main`: all 6 oops in `homa_route_free` (F8). ✅ 6/6 with the fix (fork #22), 46 s |
36
+
| Lifecycle |`homa-lifecycle-{6_12,7_3}`| ❌ on `main`: phase 3 (smoke) crashes in `homa_route_free` (F8), and phases 7–8 report it. ✅ all 9 phases with the fix, about 22 s |
37
+
| VM matrix |`homa-vm-matrix`| ❌ on `main` (F8). ✅ 8/8 with the fix (fork #22): smoke and lifecycle per kernel, plus four pairs, in 51 s |
37
38
| KASAN VM |`homa-microvm-test-debug`| ⏳ not run yet (F7) |
38
39
| Static analysis |`analysis-deep`| Four rounds triaged; see the bugs below |
39
40
@@ -54,6 +55,34 @@ On the earlier TCP `socket` link, Homa's P50 was 2927–5024 µs and TCP's P99 a
54
55
These are functional numbers: an emulated link between VMs that share host CPUs. They show
55
56
that traffic flows, not how fast Homa is.
56
57
58
+
### Lifecycle test (`nix run .#homa-lifecycle`)
59
+
60
+
This follows the pcp and xdp2 lifecycle tests. The guest has two consoles on host TCP
61
+
ports:
62
+
63
+
-**ttyS0** is the only kernel console. QEMU logs it to `serial.log` from the first byte,
64
+
so an oops is caught even after the shell has died, during shutdown for instance.
65
+
-**hvc0** is a virtio console running a root shell. The host drives each phase through it,
66
+
and it is fast: reading 612 lines of `dmesg` takes 188 ms, where 115200 baud would take
67
+
seconds. Kernel messages never mix into command output.
|`homa-microvm-test-debug` (KASAN) | ⏳ not run (rebuilds the kernel) |
90
119
|`homa-pair-test`, `homa-pair-test-<server>-<client>`| ✅ PASS for all four 6.12/7.3 pairings |
120
+
|`homa-lifecycle`, `homa-lifecycle-<series>`| ✅ PASS with the F8 fix (see below) |
91
121
92
122
---
93
123
@@ -305,4 +335,4 @@ and the 7.3 trees are prepared from source with each arch's nixpkgs kernel confi
305
335
| 2026-10-21 | Round 2: rebased on `main`, 6.18 default, hermetic unit KDIR, real-code fuzz-mock (found #121), `analysis-reports/round2/`|
306
336
| 2026-10-22 | 7.x: default 7.3, `kernel-src.nix` (7.0–7.2 and local trees), `homa-build-matrix`, per-kernel microVMs, GRO/RPS smoke test |
307
337
| 2026-10-28 | The 7.1 patch landed upstream (#120), so `nix/patches/` is empty. Two-VM pair tests, cross-kernel pairs, this status doc. F2 latency sweep (`homa-pair-exp`): RESEND-timer stalls from QEMU's `socket` link, pair tests moved to `dgram`|
308
-
| 2026-10-29 | John: `main` will target an LTS of 7.3+ (F1 closed). Phase 3 `homa-vm-matrix`; guests boot with `init_on_free=1`; found F8 (UAF in `homa_route_free`), fix as fork #22. riscv64/aarch64 cross builds (`homa-cross-matrix`, F9) |
338
+
| 2026-10-29 | John: `main` will target an LTS of 7.3+ (F1 closed). Phase 3 `homa-vm-matrix`; guests boot with `init_on_free=1`; found F8 (UAF in `homa_route_free`), fix as fork #22. riscv64/aarch64 cross builds (`homa-cross-matrix`, F9). `homa-lifecycle` (pcp-style phases over ttyS0 and hvc0)|
0 commit comments