Skip to content

About

Experimental AMD SVM accelerator for QEMU on x86_64 macOS. Includes an XNU kernel extension, QEMU integration and build tools. Verified Alpine Linux boot with two guest cores online. No additional AMDVM-specific XNU patches required.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

osx-svm-accel — AMD SVM acceleration for QEMU on macOS

Русский · Changelog

Experimental snapshot · 2026-11-17

AMDVM is an experimental AMD SVM provider for x86_64 macOS and a native QEMU accelerator named amdsvm. The kernel extension executes guest CPU instructions through SVM; QEMU supplies the virtual machine and device model. Users choose their own disks, installation media, memory and CPU topology through ordinary QEMU options. There is no guest-OS detector or bundled image.

On the Ryzen 7 5700X reference host, earlier AMDVM builds took Alpine to serial login with 8 vCPUs and 4 GiB in 20.221 s and with 8 GiB in 35.629 s, on different build pairs. One older build also reached login at 12 and 16 GiB. Later runs at those sizes and at 1 vCPU / 256 MiB failed before login. See the performance and compatibility record.

Windows 10 22H2 completed a full installation and booted from its virtual disk to the desktop under AMDVM. The recorded desktop boot used 8 vCPUs and 4 GiB on an earlier QEMU/provider pair. See the Windows run record.

Current focus: reducing VMM overhead in the QEMU/provider RUN path, including IOKit calls, VMEXIT handling, state transfer and contention on QEMU’s global lock. See performance and ABI.

AMDVM requires no additional XNU patches or custom XNU build beyond the existing Hackintosh configuration. It does not use Hypervisor.framework or TCG for guest CPU execution; intercepted operations are emulated in QEMU.

Research prototype, tested on one host. Read risks. Guest results apply to the recorded builds and configurations.

Installed Alpine console and package installation

The screenshot shows an earlier single-vCPU / 2-GiB run. See the October 14 evidence for the original pinned two-core workload.

Build and use

make provider-experimental  # build only; no installation or hardware entry
make checks                # offline provider checks
make qemu                  # pinned upstream checkout + source overlay + build
make qemu-checks            # offline QEMU unit tests

Requires an Intel/AMD x86_64 macOS build host, Xcode Command Line Tools, Python 3, Git, Ninja, pkg-config, GLib and Pixman. SLIRP is resolved from the system or QEMU's pinned subproject. See build and run for signing, manual installation, verification, rollback and guest commands.

After the matching provider is loaded, select:

-accel amdsvm,confirm-experimental-run=on,confirm-no-kdp-watchpoints=on

Use ordinary -m, -smp, -drive and -cdrom options. The public frontend accepts 1–8 vCPUs and 256 MiB–16 GiB RAM, subject to provider capabilities and memory preparation. It rejects CPU hotplug. The paired source and unsigned kext build were checked offline. See the manifest for the release build validation and the separate historical runtime results.

Verify the extracted source package with shasum -a 256 -c SHA256SUMS.

Contents

Path Contents
svm-kext/ provider, versioned ABI, diagnostic client, mock headers
tools/ offline tests and QEMU preparation/build scripts
qemu/ 51 added/modified upstream files and checksum manifest; no full QEMU tree
evidence/ selected reference results, identities and validation limits
docs/en/, docs/ru/ English and Russian documentation

Documentation

osx-svm-poc remains the separate minimal HLT-transition PoC. This repository contains the QEMU integration and current provider source. AMD-HVF is a separate future compatibility study.

Contributing

See CONTRIBUTING.md for changes, checks and hardware reports. Issue templates cover runtime results, build/loading problems and feature requests.

License

Original project code: GPL-2.0-or-later. Upstream-derived QEMU files retain their notices and applicable licenses. See LICENSE, qemu/COPYING and THIRD_PARTY.md.

© 2026 Nick Ognev.

About

Experimental AMD SVM accelerator for QEMU on x86_64 macOS. Includes an XNU kernel extension, QEMU integration and build tools. Verified Alpine Linux boot with two guest cores online. No additional AMDVM-specific XNU patches required.

Topics

Resources

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Contributors

Languages