Files
reims-vgpu/docs
Anees Iqbal b955213d27 📝 Keep the guest's RAM mapped until the process exits [ci skip]
The device's imports of the guest's pages into the host GPU can outlive its
release: rt frees them on a thread of its own once no GPU work uses them, and
the release of the last device keeps the GPU device for the process when its
wait runs out. So the memory map's host memory stays mapped, and is not
unmapped, mapped anew or discarded, until the process exits (the header's
RvgMemoryRange and memory_map, docs/api.md, and reims-vgpu's MemoryMap).

QEMU's side does not change: the machine holds its RAM backend until QEMU
exits (hw/core/machine.c:1216), and the VMs reims-ctl makes discard no guest
RAM: no balloon, free page reporting, virtio-mem or memory hot-unplug, and
their RAM is a shared mapping, which KSM does not merge.
2026-11-20 16:33:34 -08:00
..