Skip to content

Bring back dual armhf/box64 platforms for arm64 Linux - #2052

Merged
slipher merged 2 commits into
DaemonEngine:masterfrom
slipher:box64-replay
Dec 1, 2026
Merged

slipher merged 2 commits into
DaemonEngine:masterfrom
slipher:box64-replay

Conversation

@slipher

@slipher slipher commented Nov 29, 2026

Copy link
Copy Markdown
Member

I used VirtualMachine.cpp from #2038 as a starting point. There are some improvements such as using posix_spawn instead of fork/exec.

Restore the code reverted in e54fe94
for executing a "probe" process to test if the kernel supports the armhf
format, with some notable changes:
- Use posix_spawn so that ENOEXEC can be immediately detected in errno,
  rather than having to communicate with the forked process.
- Add CMake support for enabling DAEMON_NACL_BOX64_EMULATION on arm64 so
  that it is possible to test the code.
- Don't execute a probe process if box64 is disabled at compile time
  (the default).

@illwieckz illwieckz left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks.

@slipher
slipher merged commit ed428b1 into DaemonEngine:master Dec 1, 2026
8 checks passed
@slipher
slipher deleted the box64-replay branch December 1, 2026 04:50
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.

2 participants