Files
reims-vgpu/docs
Anees Iqbal f5b6cd95a5 🐎 Give the kext's chunks at multiples of 64 KiB of guest RAM
The bundle's slabs of the kext's chunks (PagesChunked) reach the host as runs
of 64 KiB, but each chunk lay at any multiple of 4 KiB: the physical mask
0x0000FFFFFFFFF000 asks IOBufferMemoryDescriptor for page alignment alone
(xnu's initWithPhysicalMask takes the alignment from the mask's clear low bits,
read from its source). On RADV the host binds a buffer over several pieces of
its import of guest RAM only where every piece lies at a multiple of the
sparse buffer's alignment, 64 KiB on Mesa 26.2, so a buffer over a slab of
several chunks took an import of its own, which every submission lists. On a
780M walk (macOS 26.7.2, Launchpad), 15 of 92 such buffers had their first
chunk at a multiple of 64 KiB, and about 24 of them were live at once.

The chunks now come with the mask 0x0000FFFFFFFF0000 (kRgfxPagesChunkMask),
each at a multiple of its own 64 KiB, so a slab's runs start and end on the
host's granule. A slab the kernel gives no such chunks for takes plain pages,
as before (test_pages_slab_source_chunks). Nothing the guest sees changes: the
chunks are zero-filled and mapped as before, and the host picks the same GPU
addresses and ids. On ANV, which binds no dma-buf buffer in several pieces,
nothing changes.
2026-11-15 21:33:55 -08:00
..
2026-11-15 15:16:04 -08:00