Skip to content

RunuX v11.3.6 — real x86_64 long-mode boot, independently verified on GCP

Choose a tag to compare

@xaviercallens xaviercallens released this 27 Sep 11:13
· 52 commits to main since this release
5a16316

What's new

RunuX now boots into genuine 64-bit long mode on x86_64 — not the
pre-existing examples/demo_kernel 32-bit trick. examples/x86_64_qemu_harness
(#71) is loaded by GRUB via Multiboot2 while the CPU starts in 32-bit
protected mode (per the Multiboot spec, regardless of the kernel ELF's
own bitness); hand-written entry code builds identity-mapped page
tables, enables PAE, sets EFER.LME, enables paging (CR0.PG), and
far-jumps into a real 64-bit code segment before ever calling into
Rust. This is also the first boot path on either architecture that
calls real workspace logic instead of only printing banners:
kernel_types::SafePageFrame::new runs for real, both the
valid-pointer and null-rejection paths.

Independently re-verified on a machine that never touched this repo
before
(#72): a fresh GCP e2-micro VM (always-free tier, deleted
after use), cloned over HTTPS, installed qemu-system-x86 +
grub-pc-bin + grub-common + xorriso + mtools via normal
apt-get, built and booted the harness without modification. Result:
PASS, then a 30-run benchmark — 30/30 boots succeeded, mean 0.5518s,
95% CI [0.5026s, 0.6010s] (TCG software emulation; this VM tier has no
/dev/kvm). Full write-up: docs/roadmap/X86_64_BOOT_TELEMETRY.md.

Why GRUB/Multiboot2 instead of direct -kernel loading (like the
RISC-V harness uses): QEMU's built-in multiboot direct-kernel loader
hard-rejects ELF64 images ("Cannot load x86-64 image, give a 32bit
one") — a real, documented limitation. GRUB's Multiboot2 loader does
support ELF64, so this builds a bootable ISO instead.

Explicitly not a Linux comparison, same as the RISC-V release.
This harness has no scheduler, drivers, filesystem, or userspace.

What's still stub: no IDT, no APIC, no real drivers, not wired
into CI. examples/demo_kernel's older i686 trick is unchanged and
still works as before.

Try it yourself

Attached below: the exact x86_64_qemu_harness binary measured above
(x86_64-unknown-linux-gnu, release profile) and the raw benchmark
CSV. Unlike the RISC-V binary, this one needs to be packaged into a
GRUB ISO before booting — see scripts/x86_64_boot_test.sh for the
exact recipe, or build + verify from source:

git clone https://github.com/xaviercallens/rust-linux-mini-kernel.git
cd rust-linux-mini-kernel
sudo apt-get install -y qemu-system-x86 grub-pc-bin grub-common xorriso mtools
bash scripts/x86_64_boot_test.sh
bash scripts/x86_64_boot_bench.sh --runs 30

PRs in this release

  • #71 — Real x86_64 long-mode boot (GRUB Multiboot2), independent of the demo_kernel trick
  • #72 — x86_64 boot telemetry: independent GCP verification, n=30 latency bench