Files
reims-vgpu/guest/bundle
Anees Iqbal 1b8cf2f69e 🐛 Move the reims-graphics wire to version 3
A guest bundle built before 11-18 sends RgfxRenderPipelineCreate at 464
bytes with its private state after it. A host since then reads the record
at 496 bytes, so it took that state's sample mask, UINT64_MAX, as the
pipeline's tessellation partition mode and refused WindowServer's
pipelines: after an update whose guest still ran the old bundle,
WindowServer restarted at every boot. The wire stayed at version 2 through
that change, so the kext let the old bundle in.

Three records changed size at version 2, which the size table from the last
commit names: RgfxVideoCaps (776 to 1552 bytes), RgfxRenderPipelineCreate
(464 to 496) and RgfxPoolBlock (40 to 48). No register, region offset or
message number moved after 11-05, the day version 2 began, and every other
change since then was a feature the guest takes, a tail after a record, or a
reserved field put to use. The wire is now version 3, and the table pins
every record's size there.

What the guest sees: VERSION reads 3. Kexts and option ROMs built before
this commit leave the device, and name both versions: macOS then drives the
display through the firmware's framebuffer and WindowServer composites in
software, so an old guest comes up with a desktop instead of looping. Kexts
of version 3 register no accelerator for a bundle of version 2 on disk, and
RgfxGate replaces it on the same boot before they register. reims-ctl's
start already makes a VM's OpenCore image again with its own kexts where
the image holds other builds. The peer traces read VERSION 3, and
design.md lists the versions and the size rule. The option ROM and both
kext sets are rebuilt in the next commit.
2026-12-02 07:29:40 -08:00
..