Skip to content

lab: the traceable kernel is a vmlinux entered through PVH, as the release's (#697) - #704

Closed
aledbf wants to merge 4 commits into
mainfrom
lab/697-traceable-vmlinux-2
Closed

aledbf wants to merge 4 commits into
mainfrom
lab/697-traceable-vmlinux-2

Conversation

@aledbf

@aledbf aledbf commented Nov 23, 2026

Copy link
Copy Markdown
Member

Why

The goal is a cold boot to the first SSH login in under 100 ms, and the ledger is the instrument that says where the time before it goes. Since v20261123.07 (#645) a release boots its vmlinux through PVH, with no decompressor. The traceable kernel the ledger boots was still published only as a bzImage. Every release ledger since .07 has measured a decompressor the release no longer runs (.07's ledger: 47.1 ms in "the firmware, the decompression and the kernel's setup", against .06's 45.0). Closes #697.

What changes

  • release traceable-kernel publishes the traceable kernel's vmlinux as *.lab-only-traceable.vmlinux, signed and attested like the rest. build already verified it as the release's vmlinux (both Xen notes, a filled .data.reloc). It publishes no bzImage, since the machine stops building one (After #645, the bzImage, KERNEL_LZ4 and QEMU 0007 serve only releases before it #660).
  • traceable:TAG fetches whichever traceable kernel the release published, listed from its assets. A release up to lab: the traceable kernel is published as a bzImage, so release ledgers since v20261123.07 measure a boot the release does not ship #697 gets its bzImage, one after gets its vmlinux.
  • A tree places a vmlinux that randomizes itself as kernel/vmlinux and removes the tree's bzImage, which would be another kernel. run:N and a path work the same way, so a kernel run with no bzImage still makes a tree. The tree's kernel part is the kernel machine.OpenRelease boots, and its manifest says how the machine enters it ("a vmlinux entered through PVH" or "a bzImage entered through its decompressor").
  • The ledger records pvh and names the window before the kernel's clock by it: "the firmware, the kernel's PVH entry and its setup" for a PVH boot.

Proof

Lab 45260129735, bench, spin's shape, v20261123.07, 10 boots a tree, interleaved: bz = traceable:v20261123.07 (the old traceable bzImage), pvh = the new traceable vmlinux (parts run 45257570442).

window bz pvh Δp50 [95%]
firmware, entry and setup (guest_to_zero) 44.3 19.4 −24.9 [−25.8, −23.4]
QEMU's start and held start 41.9 50.3 +8.4 (the vmlinux's load, #698)
the kernel's 0 (kernel_zero) −16.8 [−18.2, −15.1]
first login 380 358 −21.6 [−32.9, −11.0]

The ledger now sees the boot the release runs: the decompressor leaves the window before the kernel's clock, and what PVH costs moves into QEMU's start, where #698 attacks it.

Rebased onto main after #696 (a comment conflict in internal/lab/ledger.go, both kept).

Tests

  • TestTheTraceableKernelIsPublishedUnderAName: the two published names.
  • TestATraceableKernelIsTheSignedOneBesideTheRelease: a release that published a bzImage gets one placed, a release that published a vmlinux boots it through PVH, a release with neither is refused, and either one in the cache is not fetched again.
  • TestAVmlinuxThatRandomizesItselfIsBootedThroughPVH: a run's vmlinux and a given one are placed, and the tree boots them.
  • TestTheLedgersTextShowsWhatMatters: the PVH window's name.

🤖 Generated with Claude Code

aledbf and others added 4 commits November 23, 2026 17:33
…lease's (#697)

Since v20261123.07 the machine boots a release's vmlinux through PVH, and
the traceable kernel the ledger boots was published only as a bzImage, so
every release ledger since measured a decompressor the release no longer
runs. release traceable-kernel now publishes the traceable vmlinux, which
build verified as the release's, and no bzImage. traceable:TAG fetches
whichever of the two the release published, and a tree places a vmlinux
that randomizes itself as kernel/vmlinux with no bzImage beside it. The
tree's kernel part is the one OpenRelease boots, and its manifest says how
the machine enters it. The ledger names the window before the kernel's
clock by that entry.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…sured

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@aledbf

aledbf commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Replaced by 708: rebased onto main after #702; no force-push.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

lab: the traceable kernel is published as a bzImage, so release ledgers since v20261123.07 measure a boot the release does not ship

1 participant