Skip to content

Releases

vphone-linux v0.5

Choose a tag to compare

@YahiaAngelo YahiaAngelo released this 09 Nov 20:13

The GPU stack moves to upstream's latest reims-vgpu and metal2vulkan, the emulated CPU gets faster again, and setup is more robust on more Linux hosts, thanks largely to contributors.

New GPU stack

reims-vgpu and metal2vulkan are rebased onto upstream development (1,311 reims-vgpu commits since v0.4's base): faster presents, IOSurface texture fixes, shared events across processes. Our vphone patches carry over on the new vphone-next4 branches.

On the iPhone Duo (iOS 27.1), Settings scrolls at 53.8 frames/s instead of 36.9, with less vCPU load, and unlocks about 9 s sooner (161 vs 170 s). On an iOS 26 iPhone 16 guest at 1x with warm caches, every boot of the new stack unlocked in about a minute and scrolled Settings at 51–71 frames/s and paged the home screen at 24–38; two of three boots on v0.4's stack unlocked late (121–155 s) and stalled on the home screen. On a good boot the two are about as fast. Details in docs/PERFORMANCE.md.

  • Home-screen icons (#63): on the first cut of the new stack, about half of iOS 26's app icons drew as dark squares or striped tiles. A bisect of upstream found the cause in metal2vulkan: a pass whose draws are recorded again took the last draw's scissor rectangle for all of them. Fixed in metal2vulkan 82797567b, verified on fresh boots with every icon drawn correctly.

Safari works

Safari and every in-app web view showed no page: WebKit's page process crashed at startup (#62). QEMU masked a process's writes to Apple's SPRR permission register with the kernel's mask instead of the per-process one, so WebKit could never make its JIT memory writable. Found and fixed by @felipeoes (qemu-vphone#5); tested on the iPhone Duo.

Faster emulation (qemu-vphone)

Measured on the iPhone Duo; the rows and switches are in docs/PERFORMANCE.md.

  • Return-address stack (VPHONE_RAS): 98.6% of returns jump straight to their block. QEMU's share of vCPU time under guestbench 44.4% → 35.0%.
  • Indirect-branch cache (VPHONE_IBC), cross-page link refill (VPHONE_XPAGE_REFILL) and DC ZVA in generated code (VPHONE_INLINE_ZVA): together with the fence change below, host cycles −6.8% and host instructions −11% for the same guest work.
  • Release-store fences on x86 (VPHONE_FENCE): one fence per release store, about 20× fewer, and STLR;LDAR no longer reorder (a correctness fix).
  • Invalidated code no longer empties every jump cache (VPHONE_JC_LAZY_INVAL): first Calendar launch while switching apps 22.6–43 s → 12.7–19.6 s.
  • The TLB flush barrier waits only for running vCPUs: at rest its wait fell from 3.6% to 0.95% of QEMU's time.
  • avp-rtc is a running clock (#24), and the generic timer counts at exactly its frequency.

metal2vulkan

  • AIR 2.8 barrier scopes: a simdgroup_barrier no longer waits for the whole threadgroup.
  • Acceleration structures read from argument buffers translate.
  • Three translator fixes ported from Nullmoth's driver (empty inline assembly, phis of constexpr samplers, inline sampler state words).

Setup and restore

  • 7-Zip 26.04 can't read iOS disks ("Cannot open the file as [APFS] archive"), which broke the GPU-driver step on Arch. tools/gpu-driver-from-cloudos.sh now falls back to reading the disk read-only through linux-apfs-rw (tools/apfs-copy-out.sh).
  • Retried restores start from a blank disk, NVRAM and SEP storage (#38, #34); a restore without macOS's /usr/bin/aea keeps the AEA component's manifest digest (#37, #33).
  • USB/IP: the host's SET_CONFIGURATION 0 → 1 cycle is answered locally, so recovery iBoot no longer panics and the SSH ramdisk shows up (#36, #32); fixed unlink framing and host-owned bulk waits (#25); driver resets during discovery are retried (#56).
  • Explicit ECIDs: VPHONE_ECID must match a device exactly (#42), and an opt-in ECID-aware SSH-ramdisk bootstrap (#47).
  • First boot: no limit on the data migration by default, and longer boot and shutdown waits (#17); guest-1x-logo.py waits for the remount instead of 10 s (#39, #35); an optional first-boot QMP socket (#27).
  • Interrupted work is kept, and setup's waits are bounded (#26); incomplete release bundles are recovered (#49).
  • Configurable locations: firmware cache (#45), CFW work directory (#46), CFW mounts bound to the selected VM (#43).
  • Toolchains: private Swiftly binary directories (#44), the release vphone-cli by default (#30), CLI sources chosen independently of releases (#52, #55, #60), Arch's rustup PATH, git worktrees count as checkouts.
  • Catalog labels for iPhone 16 and iPad mini corrected (#40).

Window

  • State-aware Home and Lock buttons (#29); Home falls back to the plain button without a lock state.
  • The host clock is relayed to the guest (#58); VPHONE_CLOCK_SYNC=0 turns it off.
  • Works with Python builds that lack AF_VSOCK (#41); RPC requests are bounded (#57).

Docs and tools

  • How to raise FrontBoard's scene-create watchdog limit for apps that take over 15 s to draw (#51, #50).
  • GFX_PPI needs qemu-vphone#3 (#53); privacy-safe USB restore tracing (#28).

Thanks

@bvolpato, @felipeoes, and everyone who filed issues.

Components

Submodule Commit
qemu (YahiaAngelo/qemu-vphone vphone) 86e6a93
reims-vgpu (YahiaAngelo/reims-vgpu vphone-next4) 310da07
metal2vulkan (YahiaAngelo/metal2vulkan vphone-next4) 8279756

Upgrading: git pull, git submodule update, then ./setup/setup.sh rebuilds QEMU, reims-vgpu and metal2vulkan. reims-vgpu now needs Rust nightly-2026-11-03 (rustup installs it from rust-toolchain.toml). Existing VMs keep working; their shader caches are rebuilt on first use.

vphone-linux v0.4

Choose a tag to compare

@YahiaAngelo YahiaAngelo released this 03 Nov 15:54
c2dc199

The iOS guest runs noticeably faster in this release, the iPhone Duo can be created from a clean install again, and a VM can now turn off the background daemons it has no use for.

Faster emulation

Each change was measured on fresh iPhone Duo (iOS 27.1) boots with a new in-guest benchmark (tools/guestbench); the numbers are in docs/PERFORMANCE.md.

  • Broadcast TLB flushes no longer stop every vCPU. iOS invalidates TLB entries on all CPUs thousands of times a second, and QEMU froze every vCPU for each one. Now each vCPU flushes its own TLB and the issuing one waits for them, falling back on the old full stop only when a vCPU is late. Boot to unlock: 189–197 s → 171–187 s. Benchmark: 5.38 s → 4.81 s. This is the launcher default (QEMU_TLB_UNSYNCED=2; QEMU_TLB_UNSYNCED=0 restores the old behaviour).
  • Translated-code cache survives process switches. QEMU's cache of where each guest code block's translation lives was reset at every TLB flush, including every switch between processes. It now keeps its entries per address space, and a page invalidation touches only that page's part of the cache. Benchmark −19%, and boots unlock about 20 s sooner.
  • No pointless TLB flushes on Apple's permission registers. iOS rewrites the SPRR permission registers thousands of times a second, mostly with the value they already hold, and each write flushed the TLB. Benchmark −12%.
  • Native floating point and Neon (ported from Inferno): FP and Neon float instructions run as host SSE/AVX/FMA instructions instead of through helper calls. Neon float32 arithmetic also uses the host's SIMD.

The lock screen no longer burns a CPU

iOS 27's wallpaper renderer (MercuryPosterExt) uses a Metal tile shader on an extended-range (HDR) color attachment. metal2vulkan did not support that, so the renderer retried about 20 times a second and used a whole guest CPU. metal2vulkan now runs tile shaders on these attachments, and the lock screen renders correctly, depth effect included. An idle guest went from about 3 busy CPUs to about 1.

Setup

  • iPhone Duo firmware (#16): the firmware catalog lists only iPhone 17,3, so the Duo's iOS 27.1 restore never resolved. create-vm.sh now knows that restore and uses iOS 27's cloudOS image.
  • Resumable downloads (#18): an interrupted IPSW download used to be reused as if complete. Downloads now go to a .part file, resume where they stopped, and are used only once complete; a short file from an older run is resumed.
  • Restores that never return (#19): after the device reported "restore finished", the restore tool could wait forever for the emulated device to reboot. It now gets 2 minutes, then setup carries on (tools/restore-wait.sh).
  • ./setup/start-vm.sh starts a VM made by create-vm.sh in its window and unlocks it; --stop shuts it down and --list shows your VMs.
  • --trim (create-vm.sh --trim, start-vm.sh --trim/--untrim) turns off about 137 background daemons a VM has no use for: Siri and intelligence, Find My, Wallet, Watch, Home, telemetry, ads, the App Store. The guest runs about a third fewer processes and its timings are steadier. The first boot after trimming is busy for about ten minutes while widgets settle.

Tools

  • tools/guestbench/: a fixed in-guest workload for comparing QEMU builds. Each run also reports how busy the rest of the guest was, since other guest activity slows every vCPU.
  • tools/guest-top.py: the busiest guest processes over an interval.
  • tools/service-profile.py: applies or removes vphoned's trimmed service profile.

Components

Submodule Commit
qemu (YahiaAngelo/qemu-vphone vphone) 14c9913
reims-vgpu (YahiaAngelo/reims-vgpu vphone-next3) 960bf4b
metal2vulkan (YahiaAngelo/metal2vulkan vphone-next3) 542e214

Upgrading: git pull, then ./setup/setup.sh rebuilds QEMU, reims-vgpu and metal2vulkan. Existing VMs keep working as they are.

vphone-linux v0.3

Choose a tag to compare

@YahiaAngelo YahiaAngelo released this 31 Oct 14:30
cc53fc3

The iPhone Duo folds on Linux, and the VM window gets a button bar.

The iPhone Duo (iOS 27.1) closed on its cover screen, then unfolded: the window turns landscape. The button bar is on the right.

What's new

  • The iPhone Duo folds. It uses vphone-cli 2.14's fold patches: the cover screen, the unfolded inner screen, a virtual hinge, and SpringBoard's own Duo layouts. The Fold button opens and closes it, and the window follows the hinge. Closing goes open → book → closed, because SpringBoard on this guest stays on the inner display when it goes straight from open flat to closed.
  • The VM window has a button bar: Home, Lock, Volume up/down, Screenshot (saved to ~/Pictures/vphone/), and Fold on a Duo. It starts with the window (WINDOW=1); TOOLBAR=0 turns it off. Under the hood, reims-vgpu's window gets a control socket, the bar and image rotation, and tools/window/vphone-window.py connects them to vphoned. See docs/TOOLS.md.
  • vphone-cli 2.14.2 is the new pairing. The Linux firmware tooling is ported, including cfw update-environment, which moves an installed VM to the new guest patches without a new restore. It now also gives the gigalocker back its AA.gl name, as cfw install does.
  • Clearer setup failures (#12, #13):
    • While waiting for the SSH ramdisk, setup reports every 5 minutes what it sees.
    • The first boot stops waiting when QEMU is gone, and says why.
    • run-vphone.sh refuses to start when /dev/shm can't hold the guest's RAM, which otherwise kills QEMU without a message.
    • A retry stops the QEMU an earlier attempt left behind.
    • Free disk is checked up front.

Updating

git pull --recurse-submodules && git submodule update --init
./setup/setup.sh                 # rebuilds reims-vgpu and relinks QEMU for the new window

To move an existing iPhone Duo VM to the fold patches:

  1. Boot it into the SSH ramdisk, as in the CFW install (docs/CREATE-ON-LINUX.md).
  2. Run sudo vphone-cli cfw update-environment -l <library> <vm> --work-parent /var/tmp.

Tested on Linux

Device iOS State
iPhone 16 Pro (iPhone17,3) 26.6.2 home screen, at 1x
iPhone 16 Pro (iPhone17,3) 27.0.1 created end to end with setup/create-vm.sh; home screen at 2x
iPhone Duo (iPhone19,4) 27.1 cover and unfolded inner screen, folding from the window (keep it at 3x)

Known limitations

  • Everything runs under emulation (TCG), so it's slower than a phone. A first boot spends 20+ minutes migrating data.
  • The SSH ramdisk boot during VM creation sometimes doesn't show up on USB. Setup now reports it, and a retry gets past it.
  • The window's rotation and button bar are Linux-only.

No Apple firmware or code is in this repository: the setup downloads firmware from Apple at run time.

🤖 Generated with Claude Code

vphone-linux v0.2

Choose a tag to compare

@YahiaAngelo YahiaAngelo released this 30 Oct 14:28
c3b9ecd

A setup release. setup/setup.sh failed for many people: the old Swift download link was gone (#7), Swift's installer refused newer distro releases such as Fedora 44, some Debian/Ubuntu package names didn't exist, and on Arch the restore stopped at "The device did not enter dfu/recovery mode in time" (#9). v0.2 fixes these and makes one setup work on Fedora, Debian/Ubuntu, Arch/Omarchy and Windows (WSL2).

Supported systems

System Tested
Fedora 43/44 end to end (the home screen) on the reference PC; setup + vphone-cli build in a clean Fedora 44 container
Arch Linux, Omarchy setup, the full build, and a VM created through the CFW install
Debian 13, Ubuntu 25.04+ setup + vphone-cli build in clean Debian 13 and Ubuntu 26.04 containers
Windows 11 (WSL2, Ubuntu) the iPhone boots, rendered on lavapipe (docs/WSL.md)

CI now checks every package list against Fedora 43/44, Debian 13, Ubuntu 25.10/26.04 and Arch. Ubuntu 24.04 is too old (it has no libimobiledevice-glue or libtatsu); setup stops there and says so.

Get started (or update)

git clone --branch v0.2 --recurse-submodules https://github.com/YahiaAngelo/vphone-linux.git
cd vphone-linux
./setup/setup.sh                 # dependencies, sources, every binary (re-runnable)
./setup/create-vm.sh             # pick a device and iOS version, create and boot the VM

Already have a checkout? git pull && git submodule update --init, then run ./setup/setup.sh again. It skips what's already done. A create-vm.sh run that failed resumes from the failed step.

The source archives below don't include the three submodules (QEMU, reims-vgpu, metal2vulkan): clone as above.

Fixes

  • Swift: setup installs it with swiftly's current per-architecture download, and always tells swiftly which platform build to use (Fedora: fedora41, Debian 12/13, Ubuntu's LTS, Arch and others: ubi9). The toolchain is called by its full path, so its own clang/lld never replace the system ones.
  • Arch:
    • the complete package list, plus headers for the kernel you run
    • lzfse built from the AUR without LTO
    • libxml2-legacy and ncurses links for Swift
    • vphone-cli linked with lld
    • an out-of-date package database stops with "update the system first" instead of failing on a mirror 404
  • Debian/Ubuntu: corrected package names (nettle-dev, 7zip), the Swift toolchain's libraries, and usbip whether the distro packages it (Debian) or ships it in linux-tools (Ubuntu).
  • Restore (#9): the DFU/recovery device is now opened to your user on every distro. The udev rule uses MODE:=, so systemd's default rule no longer resets it.
  • sudo: create-vm.sh no longer asks for a password when sudo is set to passwordless.
  • vphone-cli build: links the distro's own libarchive instead of a path that only existed on Fedora.
  • Host settings: vhost_vsock and vm.max_map_count are set up where missing.
  • GPU-driver step: create-vm.sh extracts the GPU driver from a stock cloudOS restore by itself, once.

New

  • Omarchy / Hyprland: tools/omarchy-window.sh floats the iPhone window, centred and phone-shaped, instead of tiling it. setup.sh offers it.
  • WSL2: runs on Windows 11, rendering on lavapipe (docs/WSL.md).
  • tools/check-host.sh: checks Swift, lzfse, kernel headers, and whether your Vulkan GPU can run the iPhone. It warns about a CPU-only device and about a VM's virtio-gpu Venus, which lacks VK_EXT_external_memory_host.
  • tools/dfu-diagnose.sh: explains a failed DFU probe.
  • tools/nvram-autoboot.py --drop: clears a recovery-boot request.
  • linux-create/build.sh and linux-create/vphone-cli: build and run the Linux vphone-cli in one step.

Known limitations

  • Everything runs under emulation (TCG), so it's slower than a phone. A first boot spends 20+ minutes migrating data.
  • GPU acceleration needs a host Vulkan driver with VK_EXT_external_memory_host, which NVIDIA, AMD (RADV) and Intel (ANV) have. A Linux VM's Venus and WSL's dzn don't; they render on the CPU (lavapipe).
  • Only NVIDIA host GPUs are tested end to end.

Thanks to @marcuskelly09 for the Arch and Swift work this release builds on.

No Apple firmware or code is in this repository: the setup downloads firmware from Apple at run time.

🤖 Generated with Claude Code

vphone-linux v0.1

Choose a tag to compare

@YahiaAngelo YahiaAngelo released this 28 Oct 12:59
3678abe

The first release of vphone-linux: vphone-cli's virtual iPhone on a Linux x86_64 PC. It can create the VM on Linux with no Mac, boot it, and show it with a GPU-accelerated window.

Tested on Linux

Device iOS State
iPhone 16 Pro (iPhone17,3) 26.6.2 home screen, at 1x
iPhone 16 Pro (iPhone17,3) 27.0.1 created end to end with setup/create-vm.sh; home screen at 2x
iPhone Duo (iPhone19,4) 27.1 home screen with display, wallpaper and touch (keep it at 3x)

Host: Fedora 44, NVIDIA RTX 4080 SUPER. Other pairings in setup/data/compatibility.json are macOS-tested and offered as "under test".

Get started

git clone --branch v0.1 --recurse-submodules https://github.com/YahiaAngelo/vphone-linux.git
cd vphone-linux
./setup/setup.sh                 # dependencies, sources, every binary (re-runnable)
./setup/create-vm.sh             # pick a device and iOS version, create and boot the VM

The source archives below do not include the three submodules (QEMU, reims-vgpu, metal2vulkan): clone as above. Details are in docs/SETUP.md and docs/CREATE-ON-LINUX.md.

What's in it

  • QEMU with a -M vresearch101 machine (Apple's PCC research platform). It adds GXF/SPRR, the SEP, a USB touchscreen and vsock, plus the instructions iOS 27 uses: FEAT_CSSC and the native X1 pointer-authentication and checked-pointer forms.
  • reims-vgpu + metal2vulkan: Apple's paravirtual GPU on the host, with Metal translated to Vulkan. That includes the program-scope bindings iOS 27's wallpapers use.
  • A Linux build of vphone-cli's firmware tooling: fw prepare, fw patch, restore over USB/IP, and cfw install through an SSH ramdisk.
  • The setup scripts: a two-step build-and-create flow that resumes after a failed step.
  • Tools: screen scale (set-scale.sh, including iOS 27's device-tree half), Auto-Lock "Never" (auto-lock-never.py), vphoned access, and more (docs/TOOLS.md).

Known limitations

  • Everything runs under emulation (TCG), so it's slower than a phone. A first boot spends 20+ minutes migrating data; later boots unlock in about 2–3 minutes.
  • Only NVIDIA host GPUs are tested.
  • iOS 27 does not go below 2x. The iPhone Duo must stay at 3x for now, because its own home screen mishandles touch at 2x.
  • Camera and photo kernels that use imageblocks are not translated yet. Networking and audio are untested.

No Apple firmware or code is in this repository: the setup downloads firmware from Apple at run time.

🤖 Generated with Claude Code