Files
reims-vgpu/guest/bundle/tests
Anees Iqbal 72ce6655ae 🆕 Take the bundle's heaped slabs from the Shared pool
Where the device has a Shared pool and the x86-64 kext maps its blocks
(RGFX_FEATURE_POOL, kRgfxKextFeaturePool), the slab allocator's first
source is the pool: each slab of a heaped class, and each large buffer's
own, is a block the kext takes from the host, zero as it comes, made a
Shared heap over the block (HEAP_OVER_POOL), its buffers placed in it as in
a region slab's heap. A class shares slabs up to 16 MiB for buffers of up to
4 MiB, as the kext's chunks do. The region's and pages sources stay where
the device or the kext has no pool: arm64 guests and Windows hosts.

The allocator keeps no slab of the pool once empty: the heap's destroy goes,
then the block's give. On the 780M walk (boot to desktop, a 31 s window
drag, a GPU benchmark) the empty slabs a class kept were taken from again 5
times before the desktop and never after, and no large buffer took a cached
slab, so keeping them would save no take there.

The churn line gains the pool's takes: blocks taken and given, refusals,
and how long the takes waited for the host.
2026-11-19 00:00:12 -08:00
..