Files
unkernel/docs
pi0x 55b582b887 js: report the CPUs the guest runs on, and why it got fewer than asked (#159)
stats().cpus said what createKernel() was asked for, not what the guest
got: cpus above the kernel's NR_CPUS (16) left the guest on 16 while
stats().cpus and snapshots said more. A kernel without SMP, or a thread
that cannot start CPU threads, booted on one CPU with only a log line.

The host now offers the SMP kernel at most MAX_CPUS (exported), so
stats().cpus and the snapshot's count are what the guest runs on;
snapshotCpuMismatch() compares counts as the kernel takes them. When the
guest gets fewer CPUs than asked, stats().cpuLimit is { requested, reason }
("max", "module-not-smp", "kernel-not-smp", "not-isolated",
"not-worker", "unsupported"), in worker mode too. createKernel() still
boots, and the log line stays.

Co-authored-by: Pooya Parsa <pooya@pi0.io>
2026-12-02 15:12:07 +01:00
..
2026-11-27 21:11:51 +00:00
2026-11-27 21:11:51 +00:00
2026-11-27 21:11:51 +00:00