Files
reims-vgpu/docs
Anees Iqbal e604a71d8b 🆕 Count a VT lend the host drops with no rels
vt-lends less vt-lends-given-back is not a leak count on its own. A walk
ends with QMP quit while the guest runs, and the device's release there can
end the open sessions before the exit counts line is written. Their rels
then go on an ended link, which sends nothing, and a reset closes every
older link the same way. So lends that were in flight at the quit or the
reset show in that difference without any leak, and the line cannot say
which.

A leak is a lent surface the host drops without letting go of it. The S8-1
reply in the race was one: no rels names it, and the kext holds the lend
until it stops. The host now notes each surface as it lets go of it, in
LentSurface::letting_go, before the rels is sent, whether or not it is sent.
A GuestSurface dropped without that note counts vt-lends-dropped-held, and
the first one is logged. The count is exact on any counts line, whatever
sessions are open. vt_message now checks its message's runs before it makes
its surfaces, so a refused message drops none unnoted. Nothing changes for
the guest.
2026-12-03 07:39:19 -08:00
..