Files
reims-vgpu/docs
Anees Iqbal f7787940ae ⏪ Take MADV_COLLAPSE of guest RAM out of QEMU on every host
Move vendor/qemu to de738a41, which reverts 53e76630, the commit cbdac3b3e
moved it to: once the prealloc of reims-ctl's memfd has run, QEMU no longer
collapses the guest's RAM into huge pages, on any host, and its stderr no
longer has the "after MADV_COLLAPSE" line. Nothing turns it back on.

With the collapse, a user's x86-64 macOS 26.7.2 guest on the reims-graphics
device panicked 80 to 154 s into each of 5 boots, its kernel's memory
overwritten (issue 185; a Radeon 890M on RADV, Mesa 26.1.8, Linux 6.18.59).
The reporter's bisect put it on cbdac3b3e: the device with the collapse
panicked; the prealloc with the collapse skipped ran clean for 20 minutes;
the collapse with plain VGA in place of the device ran clean.

For users: guest RAM is preallocated as before, and is on huge pages only
where the host's transparent huge page settings give them at a fault,
shmem_enabled at advise, always or within_size. At never, most
distributions' default, the guest runs on 4 KiB pages, as before cbdac3b3e.

docs/qemu.md drops the collapse's row and section and says again what was
true before it. docs/lessons.md records the trap: the collapse was proven by
one boot to the desktop at each setting, which a fault minutes into use does
not show.
2026-11-25 17:42:31 -08:00
..