Garvit Surana f7db19a5d9 feat(hle): a guest access's fault inside a composite's fast path puts the call back at the function's entry as the fast path found it and runs the original's first instruction alone, so the original takes the fault, where such a fault stopped the PE as a native failure with no recovery row
native_fault first asks hle_fault: for a block with an HLE mark, a fault
at an offset before the mark's prefix end, from an x86 exception that is
a guest access's as native_fault judges one (a #PF with a plain
read/write error code, or a #GP/#SS of a non-canonical address), settles
the run as native_fault does at the block's first instruction with none
of it retired: pinned::settle over a copy of the state, the chain's
retired instructions added, the PC at the entry, a link's BTYPE applied.
The fast path writes no guest register or frame field before its commit
point, so that is the state the call entered with. It then sets the
bypass and counts it. The scheduler's step takes the bypass beside PACM
(always evaluated, so a stale one is cleared) and fetches the entry as a
single-instruction block: the original runs from its first word and
takes the fault itself, with ESR, FAR, ELR and state as without HLE. A
fault in the bail's code keeps its moved recovery row; any other trap in
a fast path still stops the PE.

The plan bypassed #PF only; accepting the non-canonical #GP/#SS too keeps
a fast path exact where the placement's limit lies past the host's
canonical range (the test host's five-level limit on a four-level host),
the faults native_fault already accepts at a guest access.

Tests: Touch with X0 unreadable equals the original in full and bypasses
once; three such calls on one machine bypass three times and stay exact;
every readable/unreadable/read-only combination of X0 and X1 agrees;
4000 random Touch cases bypass exactly when X0's page is unreadable;
pointers at or past the limit, tagged or in the upper half bail without
a fault, an unmapped one in range bypasses; software step never matches;
a reused session runs as a fresh machine with Touch on as well, and no
call with every page mapped bypasses. Mutations caught: no hook, no
prefix bound, no bypass taken.

Translator id unchanged: engine glue and tests only.
2026-11-22 17:57:06 +00:00
2026-11-11 05:11:34 +00:00
2026-11-16 20:09:18 -05:00


Stela

A translation-based Apple Silicon layer for x86-64 PCs. It is a UEFI boot program with an arm64-to-x86-64 translator, a Metal driver for NVIDIA GPUs and a model of Apple silicon hardware. Stela currently presents itself as an M2 Mac mini.

Warning

Stela is still in development. It is slow and still may not boot on supported hardware. Fixes are on the way, please submit a GitHub Issue with your boot logs if you encounter an error!

Translator

An ahead-of-time and just-in-time compiler translates arm64e code to x86-64. It covers more than 3,000 AArch64 instruction encodings, maps guest registers to host registers and caches translated code.

NVIDIA driver

The Metal driver compiles AIR, Metal's shader IR, directly to NIR, Mesa's IR, and supports the Metal3 and Apple7 GPU families.

Hardware requirements

Part Requirement
CPU Intel or AMD x86-64-v2 (Intel Nehalem, AMD Bulldozer or newer). AVX2 and AVX-512 are used when present.
Memory 8 GB or more.
Firmware 64-bit UEFI with Secure Boot off.
GPU NVIDIA GeForce GTX 16 or RTX 20, 30, 40 or 50 series.
Disk NVMe, or SATA in AHCI mode. 60 GB or more for macOS: a GPT partition or a whole disk to erase.
USB stick 8 GB for the Online installer, 32 GB for the Offline installer.
Ethernet Intel I225, I226, I210, I211, I350, 82574L, 82575, 82576, 82579, 82580, I217, I218, I219.
Realtek RTL8111, RTL8168, RTL8169, RTL8411, RTL8125, RTL8126, Killer E2600, E3000.
Broadcom BCM5720, BCM5761, BCM5762.
Aquantia AQC100, AQC107, AQC108, AQC109, AQC111, AQC112, AQC113, AQC114, AQC115C, AQC116C.
Qualcomm Atheros AR8131, AR8132, AR8151, AR8152, AR8161, AR8162, AR8171, AR8172, Killer E2200, E2400, E2500.
USB: Realtek RTL8152, RTL8153, RTL8156, ASIX AX88179, AX88178A, AX88772, CDC ECM and NCM.
Wi-Fi None currently supported.
Bluetooth None currently supported.
Audio None currently supported.
USB xHCI (USB 3) and EHCI controllers, hubs, USB disks.
Input USB keyboards and mice. PS/2 keyboards, mice and Synaptics or Elantech touchpads.

Install

  1. Download stela from the releases page.
  2. Run sudo ./stela (Linux, macOS) or double-click stela.exe (Windows).
  3. Choose the USB stick and the installer, then confirm. This erases the USB stick.
  4. Boot the PC from the USB stick.

Update

Download the new stela, plug the USB stick in and run:

sudo ./stela update

On Windows, open Terminal with Run as administrator and run:

.\stela.exe update

Logs

If Stela does not work, plug the USB stick into any computer with stela and save the boot log. Include log.txt in your GitHub Issue. Save it before you start Stela again many times: the log keeps the start of each of the last eight boots, but only the latest part of a long run.

sudo ./stela log --output log.txt

On Windows, open Terminal with Run as administrator and run:

.\stela.exe log --output log.txt

Build

You need Rust, git, Python 3.10 or newer, and LLVM 21, 22 or 23 with Clang, LLD and libclang. On macOS, Xcode's Apple clang 21 or newer also works.

git clone https://github.com/tylertms/Stela
cd Stela
cargo xtask dist

This writes target/release/stela. The first build fetches and compiles Linux, Mesa and LLVM sources and takes a long time.

Stela contains no Apple software. You are responsible for following Apple's software license agreement and terms of use.

Stela's code is GPL-2.0-or-later. See LICENSE and NOTICE.

Community

Discord Server

Languages
Rust 89.2%
C 6.9%
Python 2.1%
Objective-C 1%
RenderScript 0.4%
Other 0.2%