Skip to content

Add AArch64 x18 virtualization for Linux guests - #1178

Merged
Sangho Lee (sangho2) merged 1 commit into
uliteboxfrom
sanghle/ulitebox/x18-minimal
Aug 18, 2026
Merged

Add AArch64 x18 virtualization for Linux guests#1178
Sangho Lee (sangho2) merged 1 commit into
uliteboxfrom
sanghle/ulitebox/x18-minimal

Conversation

@sangho2

@sangho2 Sangho Lee (sangho2) commented Aug 17, 2026

Copy link
Copy Markdown
Contributor

This PR adds support for AArch64 x18 virtualization for Linux guests. The x18 register is a general-purpose register on Linux whereas a reserved platform register on macOS and Windows. To work around this mismatch, this PR lets the rewriter replaces Linux guests' x18 access with memory-slot-backed access. Confirm this works using Linux-on-Linux as a test platform. It has some known coverage limitations like indirect branch with x18.

@sangho2
Sangho Lee (sangho2) force-pushed the sanghle/ulitebox/x18-minimal branch 12 times, most recently from c6191dc to 77e5e79 Compare August 18, 2026 04:00
@sangho2
Sangho Lee (sangho2) force-pushed the sanghle/ulitebox/x18-minimal branch from 77e5e79 to 5f0f569 Compare August 18, 2026 13:31
@github-actions

Copy link
Copy Markdown

🤖 SemverChecks 🤖 ⚠️ Potential breaking API changes detected ⚠️

Click for details
--- failure enum_variant_added: enum variant added on exhaustive enum ---

Description:
A publicly-visible enum without #[non_exhaustive] has a new variant.
        ref: https://doc.rust-lang.org/cargo/reference/semver.html#enum-variant-new
       impl: https://github.com/obi1kenobi/cargo-semver-checks/tree/v0.50.0/src/lints/enum_variant_added.ron

Failed in:
  variant GateMetadata:X18 in /home/runner/work/litebox/litebox/litebox_syscall_rewriter/src/aarch64.rs:248
  variant GateMetadata:X18CompareBranch in /home/runner/work/litebox/litebox/litebox_syscall_rewriter/src/aarch64.rs:253
  variant GateMetadata:X18Adr in /home/runner/work/litebox/litebox/litebox_syscall_rewriter/src/aarch64.rs:258

@sangho2
Sangho Lee (sangho2) marked this pull request as ready for review August 18, 2026 16:00
@sangho2
Sangho Lee (sangho2) added this pull request to the merge queue Aug 18, 2026
Merged via the queue into ulitebox with commit 3da878b Aug 18, 2026
7 checks passed
@sangho2
Sangho Lee (sangho2) deleted the sanghle/ulitebox/x18-minimal branch August 18, 2026 18:27
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