Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fex: init at 2410 #352205

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

fex: init at 2410 #352205

wants to merge 5 commits into from

Conversation

andre4ik3
Copy link
Contributor

@andre4ik3 andre4ik3 commented Oct 29, 2024

Adds FEX, a fast usermode x86 and x86-64 emulator for Arm64 Linux.

NOTE: When compiling with tests (doCheck = true), FEX requires a kernel with 4k page size. So this means, e.g. running it directly on something like the 16k page size Asahi kernel won't work (it will cause a <jemalloc>: Unsupported system page size error when compiling). So for testing I used an aarch64 virtual machine.

To-Do

  • Package tests (currently WIP, using checkPhase)

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@andre4ik3 andre4ik3 marked this pull request as draft October 30, 2024 08:09
@Liamolucko
Copy link
Contributor

I have a derivation for FEX 2408 with working tests over here, if you wanted to use that for reference: https://github.com/Liamolucko/nix-config/blob/31ae4e3240addc81fd79afb4344050619f639813/pkgs/fex/default.nix

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

Successfully merging this pull request may close these issues.

2 participants