XNU as a loadable kernel module inside Linux (macOS personality for arm64 Linux)
C
README: screenshots
Heyang Zhoufaa0aad1f906
diff --git a/LICENSE b/LICENSEindex cc1fff0..de08783 100644--- a/LICENSE+++ b/LICENSE@@ -9,6 +9,8 @@ Each source file names its license in an SPDX-License-Identifier line; the fullMIT gpu/xnu-drm/darwin/, gpu/xnu-drm/xnudrm_proto.h; the patches to Mesa and virglrenderer(under their upstream's license, as are the patches to metal2vulkan: GPL-2.0-or-later)+docs/images/ holds screenshots of macOS running on xnulinux; the macOS interface and wallpaper in them are Apple's.+Files without a comment syntax (JSON manifests, property lists, patches) are under the license of the directory they are in.Copyright (c) 2026 Heyang Zhou and contributors.diff --git a/README.md b/README.mdindex 5dcdf6b..0f39ef0 100644--- a/README.md+++ b/README.md@@ -10,6 +10,17 @@ memory, timers, files, network and GPU through a small interface module (`fki.koWith a stock Ubuntu kernel, `insmod xnu.ko` boots a macOS 27 system disk made by Apple's own installer to thedesktop: loginwindow, WindowServer, Dock, Finder, Safari and Chrome.+++*One system, two userspaces. Left: a Terminal in the hosted macOS 27.2.1 (`sw_vers`, the Darwin kernel, launchd,+WindowServer, Dock and Finder running). Right: from that macOS, an SSH session into the Linux it runs inside (Ubuntu,+Linux 7.0, the `xnu` and `fki` modules loaded, and the `insmod xnu.ko` process the macOS kernel runs in).+Straight from the hosted framebuffer, 1280×800.*++++*The hosted desktop at the end of a 30-minute stress run, rendered on the CPU (no GPU bridge).*+## How it works```diff --git a/docs/images/desktop.jpg b/docs/images/desktop.jpgnew file mode 100644index 0000000..7db5bacBinary files /dev/null and b/docs/images/desktop.jpg differdiff --git a/docs/images/macos-and-linux.jpg b/docs/images/macos-and-linux.jpgnew file mode 100644index 0000000..1796cccBinary files /dev/null and b/docs/images/macos-and-linux.jpg differ