Files
reims-vgpu/crates
Anees Iqbal 845641e32c 🐛 Hold a stalled Direct3D 11 draw for STALL_HOLD before its death
Since the draws' wait was bounded (#81), a Windows host ended the process at
a draw or a clear into a video cache's planes whose GPU work ran past
DEVICE_WAIT, 5 s, with its fence still answering. What the host saw: a stall
of 6 s, which used to land late, ended the VM. The unix arms hold a stalled
write for STALL_HOLD, 10 s more, before their death: 15 s from the wait's
start.

The draws now take a hold at their make (PlaneDraw::new), and reims-vgpu
gives them STALL_HOLD. Each wait, on the fence's event, by polling the fence
or by polling the event query, asks until DEVICE_WAIT and, where it has no
answer by then, up to the hold more, the first stall of each way logged. A
wait answered in the hold says so (Waited::held), counted as
video-drawn-waits-held. Past the hold the draw is Unwaited, and the process
ends with the same named fatal. A refused signal with a refused event query
still ends the process at once: no wait is left that could answer.

What the host sees now: a draw whose GPU finishes between 5 and 15 s lands,
counted; one not finished by 15 s ends the process with "reims-vgpu: fatal:
platform call the wait for the Direct3D 11 draws into a video cache's
planes: the fence's event did not answer the GPU done with the draws in
15.0 s".

The held-signal test now needs the draw to last the total (red: unwaited at
5.0 s, mini job m3-max-84765). A new test passes the held fence from the CPU
6 s into the draw, which lands held (red: Unwaited at 5.0 s). The refused
signal and query test asserts both end inside DEVICE_WAIT, and the
virtual-clock poll test covers an answer in the hold. The hand-over table's
row 20, docs/conventions.md and answer.rs's counts list follow; answer.rs
now lists the drawn waits' polled and queried codes too, which it lacked.

(cherry picked from commit bde4638ea0af75c8acad992ef31eed82d0974d81)
2026-12-03 10:44:43 -08:00
..