Files
reims-vgpu/docs
Anees Iqbal 0bef142272 🆕 Decode VideoToolbox's paravirtual sessions on VA-API, offering bit 52
An arm64 guest's VideoToolbox now decodes H.264 and HEVC on the host's GPU.
The host offers VT_MESSAGES where VideoToolbox's paravirtual path lists a
decoder: where the video arm lands decodes in the surfaces the guest lends,
on VA-API. Each decoder session decodes on a GuestDecoder of the arm, through
the VA crate's decoders, and lands its picture in the lent IOSurface through
a view of its guest RAM pages: written there by the driver's video
processing where its import check takes the surface's layout, else read back
and copied by the CPU. A session keeps the views of the last eight surfaces
it landed in.

What changes for the guest: on a VA-API host, a macOS 26 or 27 arm64 guest's
VideoToolbox lists our decoders as hardware (VTIsHardwareDecodeSupported is
true for avc1 and hvc1) and decodes on them. The arm64e kext publishes the
service on macOS 26 and later alone, so macOS 14 and 15 decode in software
as before. Before it lends a surface, the kext takes a read-write CPU lock of
it and lets it go, as a process would: the surface's seed moves, and a
device cache of it is filled from its pages again at its next use, once the
host's picture is there. An NVIDIA host, whose arm lands no such decode yet,
offers no bit 52 and lists no decoder; an x86-64 guest takes no bit 52.
2026-11-16 13:31:30 -08:00
..
2026-11-15 15:16:04 -08:00