Files
reims-vgpu/docs
Anees Iqbal 0fb0f472a5 🆕 Hand the guest's RAM to devices whole on Windows
On Linux each device is handed the guest's RAM whole (the runtime's HostRam): a
no-copy object over it lies in the RAM's chunk the device imported, and the
graphics lane's device caches copy surfaces by runs of the RAM, with no view of
their pages. Windows had neither: copies_guest_ram answered false, every object
over the RAM took an import of its own, and a cache took a view. The runtime's
HostRam imports the RAM by pointer on Windows too, with no dma-buf source, so
the hand-off moves out of the Linux module into one both share
(os/host_ram.rs): Windows's lease hands its RAM to every device as the device is
adopted, its imports carry the RAM's runs, and its blit encoder copies by them.
Linux keeps its dma-buf sources of the RAM in its own module, which the shared
one asks for (with_ram_sources), and behaves as before. The four tests of the
hand-off and of copies by runs run on Windows too, over a section's view, as
QEMU maps its RAM there.
2026-11-15 08:23:18 -08:00
..