🐛 Let macOS 26's Recovery start past the video drivers

In macOS 26's installer and Recovery, the GPU port leaves its IOSurface mapper
unbound, and both video drivers' starts waited for the mapper's service with
no timeout. WindowServer then never drew, and Recovery hung at its first
screen. reims-vgpu-video's 80d10ba (its B76) changes the x86_64 build alone:
a start whose mapper and IOSurfaceRoot are not yet matched returns at once,
and a kernel thread waits for them with Apple's own waitForMatchingService,
then runs Apple's start unchanged. In Recovery the drivers sit idle; in a full
boot the host sees the same requests in the same order, later. The arm64e
build stays identical.

These are that build's two executables, X86_STRIP_DEBUG=1 as before:
AppleM2ScalerParavirtDriver 85148de7b0f5c2195772eedf4a7ba74154d5dda5a328815fa9fe314483a39e3f
AppleVideoToolboxParavirtualization ff462f3e0e69ba7949d26e4eaabd1895f2a8bcd55f77fba1e81fe34053540e1e
The Info.plists, VtWaitPatch.kext and the Kernel > Add entries are unchanged.

Checked on msi-laptop with images made by this reims-util, only these
executables swapped, on overlays: an installed disk's Recovery 26.6.1 reached
its menu (with the old executables it hung); the installer's Recovery 26.6.2
reached Disk Utility; a full 26.6.1 boot answered the scaler's type 1
request, scalerprobe passed 29 of 29, and H.264 and HEVC decoded 150 of 150
frames on the host's hardware.
This commit is contained in:
Anees Iqbal committed 2026-10-29 20:34:49 +02:00
1 parent cbde8611f5
commit 8a8a85210b
2 files changed