Skip to content

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

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

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

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

PROOF_PENDING

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 2 commits November 23, 2026 17:15
…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>
@aledbf

aledbf commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

#701 (#660, the release without a bzImage) is stacked on this PR: it merges this branch and targets it, so it lands after this one. Two docs this PR leaves naming the traceable kernel a bzImage, which #701 does not touch: kernel/README.md ("publishes it on the release as …lab-only-traceable.bzImage") and docs/releasing.md (the release's files list). compat.go: #701 replaces this PR's fileExists(…/kernel/bzImage) with machine.OpenRelease refusing the release, because every release from #701 on has no bzImage.

@aledbf

aledbf commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Gate fails on this PR at "coverage is 92.93% of what CI runs, below the floor of 93%" (job 137983868587). #701, stacked on it, reads the same 92.93% (job 137987628652), so the drop is this PR's; #701 waits on its fix.

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

aledbf commented Nov 23, 2026

Copy link
Copy Markdown
Member Author

Replaced by 704: rebased onto main after #696 (comment conflict in ledger.go, both kept), with the proof run (lab 45260129735) filled in; 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