mirror of
https://github.com/yaelliethy/orchard.git
synced 2026-10-29 17:19:57 +00:00
Boots an arm64 macOS guest on QEMU/TCG on Linux through the genuine Apple
chain -- AVPBooter -> iBootStage1 -> iBootStage2 -> stock XNU -- and renders
its desktop on the host's Vulkan.
QEMU (1044 lines over 18 files, 8 new):
* the `apple-vm` machine: Apple-style timer-on-FIQ wiring, the paravirtual
GPU device, a PAC master key installed across CPUs, and GICv2m's
`macos-compat` bit, without which macOS will not use the MSI frame;
* `bdif` NVRAM block writes. Upstream drops them, so a guest could never
persist a boot variable and every install phase repeated forever;
* `cfg`'s guest-visible random seed at its fixed offset;
* Apple pointer authentication under TCG: the register definitions come
from ChefKissInc/Inferno, the per-core key snapshot and the PSCI CPU_ON
key inheritance (restricted to a kernel caller by testing that its pc is
in the TTBR1 half) are ours. Without them secondaries run keyless and the
first cross-core authentication recurses through its own panic path;
* portability work upstream has not needed before: CONFIG_VMAPPLE was gated
on HVF and shipped off, hw/vmapple/aes.c has a VLA that only compiled
under clang, and the architectural op1-to-minimum-EL assertion rejects
Apple's IMPDEF registers.
The GPU is steelbrain/reims-vgpu, carried as a submodule pinned to the commit
this was tested against; the two changes it needs are in patches/reims-vgpu/.
The AVPBooter patch is NyanSatan's, from Virtual-iBoot-Fun.
Nothing Apple ships is in this repository. The macOS image is fetched from a
public tart image, and Apple's VM firmware is extracted from that image, where
Virtualization.framework carries it -- so no Mac is involved in the setup.
Measured on the reference host: desktop in 75 s at 12 vCPUs and 10 GB.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Youssef <soosef.youssef@gmail.com>
61 lines
2 KiB
Text
61 lines
2 KiB
Text
#
|
|
# This is the gitdm configuration file for QEMU.
|
|
#
|
|
# It is to be used with LWN's git dataminer tool for generating
|
|
# reports about development activity in the QEMU repo. The LWN gitdm
|
|
# tool can be found at:
|
|
#
|
|
# git://git.lwn.net/gitdm.git
|
|
#
|
|
# A run to generate a report for the last year of activity would be
|
|
#
|
|
# git log --numstat --since "Last Year" | gitdm -n -l 10
|
|
#
|
|
|
|
# EmailAliases lets us cope with developers who use more
|
|
# than one address or have changed addresses. This duplicates some of
|
|
# the information in the existing .mailmap but in a slightly different
|
|
# form.
|
|
#
|
|
EmailAliases scripts/gitdm/aliases
|
|
|
|
#
|
|
# EmailMap does the main work of mapping addresses onto
|
|
# employers.
|
|
#
|
|
EmailMap scripts/gitdm/domain-map
|
|
|
|
#
|
|
# Use GroupMap to map a file full of addresses to the
|
|
# same employer. This is used for people that don't post from easily
|
|
# identifiable corporate emails. Please keep this list sorted.
|
|
#
|
|
|
|
GroupMap scripts/gitdm/group-map-alibaba Alibaba
|
|
GroupMap scripts/gitdm/group-map-amd AMD
|
|
GroupMap scripts/gitdm/group-map-cadence Cadence Design Systems
|
|
GroupMap scripts/gitdm/group-map-codeweavers CodeWeavers
|
|
GroupMap scripts/gitdm/group-map-facebook Facebook
|
|
GroupMap scripts/gitdm/group-map-huawei Huawei
|
|
GroupMap scripts/gitdm/group-map-ibm IBM
|
|
GroupMap scripts/gitdm/group-map-janustech Janus Technologies
|
|
GroupMap scripts/gitdm/group-map-microsoft Microsoft
|
|
GroupMap scripts/gitdm/group-map-netflix Netflix
|
|
GroupMap scripts/gitdm/group-map-redhat Red Hat
|
|
GroupMap scripts/gitdm/group-map-wavecomp Wave Computing
|
|
|
|
# Also group together our prolific individual contributors
|
|
# and those working under academic or intern auspices
|
|
GroupMap scripts/gitdm/group-map-individuals (None)
|
|
GroupMap scripts/gitdm/group-map-academics Academics (various)
|
|
GroupMap scripts/gitdm/group-map-interns GSoC/Outreachy Interns
|
|
|
|
# Group together robots and other auto-reporters
|
|
GroupMap scripts/gitdm/group-map-robots Robots (various)
|
|
|
|
#
|
|
#
|
|
# Use FileTypeMap to map a file types to file names using regular
|
|
# regular expressions.
|
|
#
|
|
FileTypeMap scripts/gitdm/filetypes.txt
|