XNU as a loadable kernel module inside Linux (macOS personality for arm64 Linux)
C
Commits on main
XnuInput builds: HIDDriverKit headers from the SDK's Kernel.framework (IOHIDDevice.h includes HIDDriverKit/IOHIDDevice.h). In the hosted macOS hidutil lists the xnulinux Keyboard and Tablet
22c1555 Heyang Zhou committed 7 days ago
Graphical session: loginwindow and SecurityAgent run, WindowServer composites
680016f Heyang Zhou committed 7 days ago
GUI groundwork: a display (XnuDisplay), en0 as an IOKit Ethernet driver (XnuEthernet); WindowServer finds its display
0f1a6c0 Heyang Zhou committed 8 days ago
System disk without Rosetta: xcodebuild -runFirstLaunch completes from a clean disk (Install Succeeded, 13 s)
0178956 Heyang Zhou committed 8 days ago
Keep Apple's LiveFS kext (com.apple.filesystems.lifs): fskitd starts and stays up
2ef43e7 Heyang Zhou committed 8 days ago
gpu/xnu-cpu-metal: Mesa shader disk cache, bounded caches and multi-VM defaults; ictool in the hosted macOS 20 s -> 5 s
5644159 Heyang Zhou committed 8 days ago
Hosted macOS validates its platform binaries like a booted Mac: static trust cache, AMFI platform version, stackshots
72c19f7 Heyang Zhou committed 8 days ago
Hosted macOS is online at boot: LaunchDaemon xnulinux.network runs /Library/xnulinux/net-up.sh (en0 192.168.77.2/24, default route and DNS through Linux's xnu0, set with scutil since configd only manages IOKit-backed interfaces)
065c7ca Heyang Zhou committed 8 days ago
Hosted XNU: calendar from the host's wall clock (upcall 812, fki_realtime; no 30 s IORTC wait), user/system time accounting on EL0 entry and exit, kernel backtraces with Linux frames packed as out-of-reach. Lua, SQLite, git 2.47.1 and swift-argument-parser build and run inside the hosted macOS
7fa34ec Heyang Zhou committed 8 days ago
Hosted XNU: constrained workqueue parallelism >= 4 on the one hosted CPU (ld's dispatch_group_wait got no worker); vm-park.sh parks hardware/crash-looping daemons on the golden disk. Xcode clang compiles, links and runs hello world
e294ca3 Heyang Zhou committed 8 days ago
Golden system disk + per-run dm snapshot (scripts/vm-snap.sh); fki_file_open sizes block devices; JOP-off SCTLR write moved after the last kernel pointer authentication (a brk at EL1 hung the host); fault-loop host yields; monitor shows kernel faults and keeps printing
78871d9 Heyang Zhou committed 8 days ago
Hosted XNU: host yield where kernel code re-enables interrupts (long kernel paths), quiet_console filter for high-volume console/kprintf lines, dmesg-based shell driver (log_buf_len=128M, console level 1)
5d232b6 Heyang Zhou committed 8 days ago
XNU patch: arm64 (non-arm64e) processes run with SCTLR_EL1.EnIA/EnDA off at EL0 (JOP off, as Apple hardware does); exec-kill and fatal-exception diagnostics. Xcode's xcodebuild runs
635a0ea Heyang Zhou committed 8 days ago
Full userland fixes: vnode table sized from DRAM (k27's CONFIG_VNODES is 1024), idle with a passed deadline still yields to Linux, fsck until clean, journaled HFS+ system disk
a312b3e Heyang Zhou committed 8 days ago
Hosted XNU under a busy userland: GBs of DRAM, user-mode IRQ preemption (stage 811), kernel faults resolved in XNU's context (xnu_fault_tramp), no 64-repeat give-up
b04323a Heyang Zhou committed 8 days ago
FKI: CMA-backed contiguous blocks (cma=), fki_yield for host IRQs, fki_regs_pstate; drop caches before the DRAM allocation
c03cd8e Heyang Zhou committed 8 days ago