Skip to content

Add Firecracker microVM loop for c-abi and musl preload - #5

Merged
tyler274 merged 1 commit into
main3from
rewrite/firecracker-microvm
Nov 28, 2026
Merged

tyler274 merged 1 commit into
main3from
rewrite/firecracker-microvm

Conversation

@tyler274

Copy link
Copy Markdown
Owner

Stacked on the c-abi PR (the guest musl smoke builds rust/tests/aliases.c / interpose.h). Retarget to main3 after it merges.

Summary

  • rust/firecracker.nix: stock nixpkgs kernel, initramfs that loads virtio/squashfs modules, squashfs store image with both glibc and musl cdylibs, harness, gcc, musl-gcc and test sources. Guest init runs suites from the kernel cmdline and prints ELYMALLOC_FC_EXIT=<rc> on serial.
  • Suites: c-abi (both SONAMEs), musl-smoke (output must match libc), opt-in browsers.
  • elymalloc-harness firecracker + rust/tests/firecracker.sh; flake packages/apps and checks.firecracker; KVM CI job beside nixos-malloc; README section.

Testing

Verified locally (Rust 1.99.1): cargo test -p elymalloc-core --release (117/117) and -p elymalloc-harness pass on this branch alone. Booted on local /dev/kvm (~10 s): nix run .#firecracker -- c-abi,musl-smoke and the sandboxed check pass. Not yet run: the GitHub Actions job, the browsers guest, the aarch64 guest.

Nix guest (stock kernel, initramfs loading virtio/squashfs modules,
squashfs /nix/store image with both glibc and musl cdylibs, harness, gcc
and musl-gcc) booted with firecracker --no-api. Guest init runs suites
from the kernel cmdline and reports ELYMALLOC_FC_EXIT on serial. Adds
elymalloc-harness firecracker, rust/tests/firecracker.sh, flake
packages/apps/checks, a KVM CI job beside nixos-malloc, and README docs.
Browsers suite is opt-in (NIX_BROWSERS=1).
@tyler274
tyler274 changed the base branch from rewrite/abi-oracles to main3 November 28, 2026 08:28
@tyler274
tyler274 merged commit 8a8e99f into main3 Nov 28, 2026
6 of 8 checks passed
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.

1 participant