Files
reims-vgpu/docs
Anees Iqbal bb4474c601 🆕 Decode VideoToolbox's paravirtual sessions on NVDEC, offering bit 52
An arm64 guest's VideoToolbox now decodes H.264 and HEVC on an NVIDIA host's
GPU, as it does on VA-API. The NVIDIA arm answers a GuestDecoder for each codec
NVDEC decodes: a decoder of whole access units of its own, whose picture lands
in the IOSurface the kext lent, laid out as the kext read it and checked
against its memory (GuestTarget). The GPU writes it there, one cuMemcpy2D a
plane into the view of the surface's pages registered with CUDA, as it writes
an x86-64 guest's output pages; where CUDA refuses the view, the picture is
read back and copied by the CPU, each reason logged once a decoder. NVIDIA's
errors reach VideoToolbox as bad data, unsupported or a malfunction.

What changes for the guest: on an NVIDIA host, where NVDEC decodes H.264 or
HEVC, the device offers VT_MESSAGES, and a macOS 26 or 27 arm64 guest's
VideoToolbox lists our decoders as hardware (VTIsHardwareDecodeSupported is
true for avc1, and for hvc1 where NVDEC decodes HEVC) and decodes on them.
Before, an NVIDIA host offered no bit 52 and listed no decoder, so they
decoded in software. An x86-64 guest takes no bit 52, as before.
2026-11-16 14:51:32 -08:00
..
2026-11-15 15:16:04 -08:00