Repository navigation
lab: the traceable kernel is a vmlinux entered through PVH, as the release's (#697) - #708
Merged
Merged
Conversation
…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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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-kernelpublishes the traceable kernel's vmlinux as*.lab-only-traceable.vmlinux, signed and attested like the rest.buildalready 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:TAGfetches 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.kernel/vmlinuxand removes the tree's bzImage, which would be another kernel.run:Nand a path work the same way, so a kernel run with no bzImage still makes a tree. The tree's kernel part is the kernelmachine.OpenReleaseboots, and its manifest says how the machine enters it ("a vmlinux entered through PVH" or "a bzImage entered through its decompressor").pvhand 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).guest_to_zero)kernel_zero)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) and #702.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