Files
reims-vgpu/docs
Anees Iqbal de3c2a8ac3 🐎 Return from a submit answered at its doorbell with no wake
A command buffer the host answers on its doorbell's vCPU has its
CB_SUBMITTED on the queue's completion ring before the doorbell write
returns. The committing thread still slept until the vector's interrupt
woke the framebuffer's work loop, which woke the completion thread, which
took the record and woke the committing thread: three guest thread wakes,
each a vCPU that may be halted, for a record already in place.

For the guest: a buffer that asks for its submission now looks for its
record on the ring as its post returns, after the bookkeeping a submitted
buffer is held to, and where it is there, commitAndWaitUntilSubmitted
returns at once, the buffer submitted and still Committed. The look reads
at most 64 records and takes none, so the completion thread still takes
each record in ring order and runs its handlers. A buffer not answered at
its doorbell waits as before. Nothing changes for the host.
2026-11-05 21:59:31 -08:00
..