Skip to content

After #645, the bzImage, KERNEL_LZ4 and QEMU 0007 serve only releases before it #660

Done

Description

@aledbf

Once #645's change lands, the machine boots a release's vmlinux through PVH whenever it carries both Xen notes, and a bzImage only for a release from v20261119.02 to v20261123.06. Three things then serve only that older case:

  • the bzImage in the release, which spin-stack/spin's hack/machine/place.go still requires (kernel/bzImage), and spin's runner tests name in their fake releases;
  • CONFIG_KERNEL_LZ4, which compresses only that bzImage;
  • QEMU 0007, which maps a bzImage given to -kernel (budget: QEMU reads the 16.7 MB bzImage into its heap, ~6-7 ms of its init #646). A vmlinux goes through load_elf, which 0007 does not touch.

How to settle it. When spin's place.go and its tests stop naming kernel/bzImage, stop shipping it, and decide 0007 and LZ4 then: a machine that still boots a pre-#645 release's bzImage in the lab (--from release:v20261123.06 with this checkout's spin-machine) needs linuxboot_dma.bin, not 0007. Measure 0007's removal on the restore number first: a restore starts QEMU with -kernel too, and with a vmlinux it reads the ELF segments.

Evidence: docs/boot-time.md, "What the machine carries", the #645 row.

Activity

  1. aledbf commented on Nov 23, 2026

    @aledbf
    MemberAuthor

    Read 2026-11-23, after #645 shipped in v20261123.07. #660 splits into what can go now and what waits on spin.

    Can go now: QEMU 0007.

    • 0007 maps a bzImage given to -kernel, and no release from .07 on boots one: OpenRelease picks the vmlinux by its Xen notes.
    • A release from .06 or before boots its bzImage with its own QEMU, which carries 0007 (from .06). compat's "machine before" is that release unpacked as it shipped.
    • The only remaining users are lab mixtures of a new QEMU with an old release's kernel (--from release:v20261123.06 --qemu run:N). Without 0007 they pay the read again, and only there.
    • Measure its removal as this issue asks, restore-first against .07. The expectation is within noise, inferred: a vmlinux goes through load_elf, which 0007 does not touch.

    Waits on spin: the bzImage and CONFIG_KERNEL_LZ4.

    • spin's hack/machine/place.go refuses a release without kernel/bzImage ("missing from the machine").
    • spin's runner does not need it: rel.Spec picks the vmlinux and pvh.bin.
    • spin-stack/spin#1689's Phase 0 is where place.go's list drops kernel/bzImage. Once a spin release does, this repository stops shipping it, and LZ4, which compresses only it, goes with it.

    Two things found reading this:

  2. aledbf commented on Nov 23, 2026

    @aledbf
    MemberAuthor

    QEMU 0007 taken back against v20261123.07 (bench, nested, spin's shape and login, QEMU without 0007 from parts run 45256311661, 40 a side, interleaved): first login +3.6 [−3.3, +7.8], sshd accepting −1.6 [−6.7, +5.6] (lab 45258887660); restored login −0.4 [−1.5, +0.9] evicted, −0.1 [−0.9, +0.9] cached (lab 45258106255). All within noise, as expected. Deleted in #702. The bzImage and CONFIG_KERNEL_LZ4 still wait on spin-stack/spin#1689, so this issue stays open.

  3. aledbf commented on Nov 23, 2026

    @aledbf
    MemberAuthor

    Done: QEMU 0007 removed (#702, within noise on both numbers), and the release is its vmlinux alone, with no bzImage, no CONFIG_KERNEL_LZ4 and no kernel 0018, the RFC's decompressor half (#711). Boot path unchanged (lab 45262046768); boot:kaslr on #711's kernel saw every base move. spin's hack/machine/place.go must stop requiring kernel/bzImage (spin-stack/spin#1689).

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions