Where the guest took GUEST_TIMES, a queue's thread notes the host's clock as
it takes each buffer, before the gate, and as it comes back to the ring after
the buffer before it. With ring 0's clock offset (its bound read with
acquire, then the offset) it splits the buffer's time before the take:
encode (committed - made), post_wait (posted - committed), queued (behind
the queue's buffer before it, on the host) and transport (the doorbell, the
thread's wake and the ring), posted mapped to the host's clock. With no
offset held only encode and post_wait are given.
Each buffer's spans go to the host's trace as a cbguest event: queue, seqno,
the spans, the offset's bound, and held, the time from the take to the event,
so a reader places the take. Once a second a debug line of target
reims_vgpu_graphics::guest_times gives the buffers' count, each span's sum
and median, and the longest transport. Both are diagnostics: the device does
nothing else differently, and reads nothing of a guest that did not take the
bit.
The device's tests: a stamped buffer's spans reach the trace, alone and
queued behind a buffer the host holds; a buffer without the op, or a guest
without the bit, gives no event; with bound 0 there is no transport. The
module's own tests cover the spans' clamps and the line's window.