Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Meta Engineering 5 min read Case study hardMaster

Cuttlefish on Mac: Running Android’s Virtual Device Framework Natively on Apple Silicon

Meta's Reality Labs ported AOSP's Cuttlefish virtual-device framework to run natively on Apple silicon Macs, letting it retire the lower-fidelity Goldfish emulator and standardize on one platform shared by developers, CI and external partners. The port revived Cuttlefish's dormant QEMU backend, relaxed Linux-only build gating on QEMU's vhost-user frontends, libvhost-user and contrib backends, and raised memory-region tracking slots in QEMU's HVF accelerator for larger configurations. It also extended QEMU's Cocoa display with BGRA pixels, mouse-as-touch input and custom geometry, and handled arm64 Darwin builds, the JIT entitlement and notarization. The changes ship as a QEMU fork (qemu-wearables) plus an AOSP patch set (cuttlefish-wearables), with upstreaming under consideration.

Assumes: QEMU and virtio devicesAndroid AOSP buildshypervisor basics

Related posts

  • Progress Report: Linux 7.2

    Asahi Linux hardMaster

    Asahi Linux's Linux 7.2 progress report covers several pieces of Apple Silicon bring-up. Apple cores have no EL3, so standard PSCI power management is impossible; the fix is a novel PSCI conduit through UEFI Runtime Services, backed by a resident m1n1 implementation and posted as a kernel RFC. On M4, Apple locks the chicken bits so WFI loses core state, which led to a kernel parameter for configurable idle loops. The m1n1 hypervisor now emulates GXF and SPRR so Apple's SPTM can run under it, which restores XNU tracing on M4 and later. M3 support gains webcam, microphones, ACE3 over SPMI for USB3 and Thunderbolt, and near-complete DCP support, with a release close. M4 and M5 now have working NVMe, and the AVD video decoder works through a VA-API to V4L2 Stateless translation layer.

  • Progress Report: Linux 7.3

    Asahi Linux hardMaster

    Asahi Linux's 7.3-cycle report covers upstream submission of the macaudio and AVD (~13,000 lines) drivers, initial M4 Pro/Max and M5 Devicetrees, and M3 support going generally available with DCP enabling sleep and the notch area. m1n1 now runs three EL1 VMs (macOS, SPTM, and the Secure Kernel with Exclaves) to reverse engineer M5 macOS. Thunderbolt support ships with USB3, XDomain and networking only, because Apple's RTKit-based controller breaks Intel-centric kernel assumptions. Google's Android P3S patchset switches TCR page granularity per process, letting x86 Windows games run with 4 KiB pages outside muvm and avoid its ~20% penalty, though it won't ship until Google's upstream plans are clear.

  • Progress Report: Linux 6.17

    Asahi Linux easyNovice

    The Apple SMC core driver, along with its GPIO and reboot controllers, has landed upstream in Linux 6.17, joining Devicetree schema changes that stabilize how the future GPU driver reads firmware data. Four-level pagetables in the DART IOMMU driver enable M2 Pro/Max/Ultra support in 6.18. m1n1 gains a CI-built UEFI bundle and a sound Rust implementation of Apple Device Tree parsing with no measured speed loss, and future m1n1 releases will require Rust. Other updates include 64-bit Windows games running in WINE via FEX outside muvm, tuxvdmtool for Linux-hosted device bringup, and the Asahi compute-shader emulation of geometry and tessellation shaders becoming shared Mesa code ('poly') for drivers like Panfrost.

  • Progress Report: Linux 6.16

    Asahi Linux mediumAdept

    Asahi Linux's graphics stack is now fully upstream: DRM Native Context GPU paravirtualisation has been merged into virglrenderer and ships with Mesa 25.2, so the Mesa fork and the Flatpak runtime extension are being retired. Mesa 25.2 also adds VK_EXT_map_memory_placed, which lets AArch64 WINE use WoW64 with FEX to run 32-bit x86 Windows games directly without the muvm 4K-page micro VM. That removes the paravirtualised GPU, network and filesystem layers, the X11 and PipeWire proxying, and the XWayland requirement. Games that hard-code 4K pages still need muvm. Kernel upstreaming has pushed the downstream patch count below 1000, with SPMI, SMC, audio and GPU devicetree work landing in 6.16 and 6.17.

  • AI coding agents on Amazon EC2 Mac: How Cognition scales Devin for macOS

    AWS Architecture Blog mediumAdept

    Cognition runs Devin's macOS workspaces as Apple Virtualization framework guest VMs on bare-metal EC2 Mac Dedicated Hosts across six AWS Regions, starting a fresh VM per session in under a minute with two guests per host as the macOS license allows. Session state persists through a host-side snapshot process exposed to the guest over NBD, since the framework lacks vhost-user. About 90% of idle sessions release their VM and resume from S3 snapshots in seconds. A user-space Ethernet gateway on file-handle attachments avoids pf conflicts with Apple's NAT and enforces per-session network policy. Images are pre-provisioned with permissions to skip TCC dialogs, the live view bounds frame queues and restarts from keyframes to avoid stale video, and Devin drives apps through the accessibility tree rather than screenshot-only computer use.

The quest for software engineering knowledge.

Look:
Layout: