Repository navigation
Add Firecracker microVM loop for c-abi and musl preload - #5
Merged
Merged
Conversation
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).
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.
Stacked on the c-abi PR (the guest musl smoke builds
rust/tests/aliases.c/interpose.h). Retarget tomain3after 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 printsELYMALLOC_FC_EXIT=<rc>on serial.c-abi(both SONAMEs),musl-smoke(output must match libc), opt-inbrowsers.elymalloc-harness firecracker+rust/tests/firecracker.sh; flake packages/apps andchecks.firecracker; KVM CI job besidenixos-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-smokeand the sandboxed check pass. Not yet run: the GitHub Actions job, the browsers guest, the aarch64 guest.