Files
reims-vgpu/guest/tools
Anees Iqbal 91211ecb57 ✅ Check the guest's kext sets against a release's KC
Neither make -C guest test nor prebuilt-check links a kext against a kernel,
and set-check needs OpenCore's TestKextInject and covers only the x86-64 set.
So the guest's mouse (21632b275) shipped imports that x86-64 11 and 12 and
arm64 14 and 15 lack, and the merge boots, x86-64 26.7.2 and arm64 26 only,
did not see it.

guest/tools/kc-imports.py takes a guest's kernel collection and a set. It
reads the KC raw, or as an arm64 guest's IMG4, whose LZFSE payload it decodes
with compression_tool. It then fails on each name a kext imports that neither
the collection nor an earlier kext of the set defines, which is the rule
Ambrosia's linker refuses by. An x86-64 kext imports its undefined external
symbols; an arm64e kext imports the names its chained fixups bind, so an
import that Graft binds at run time is not counted. make -C guest kc-check
KC=... KC64=... runs it on guest/prebuilt and guest/prebuilt-arm64e.

It runs on a Mac after a set rebuild, against the oldest release of each set
(x86-64 11.7.11's Boot KC, arm64 14.6.1's kernelcache) and the newest. The
collections are copied out of the guests and kept local: nothing taken from
them is committed. docs/development.md, Testing, says where each one lives.

Against development's sets it named the six IOHIDDevice methods on x86-64
11.7.11 and 12.7.6, and didTerminate alone on x86-64 13.7.8 to 15.8.2 and
arm64 14.6.1 and 15.6.1. Against the fixed sets every import resolves on
x86-64 11.7.11 to 26.7.2 and arm64 14.6.1 to 27.0.1 (m3-max-35732).
2026-11-16 02:44:27 -08:00
..