Files
reims-vgpu/docs
Anees Iqbal 0db91636f3 🐛 Let WHPX's vCPUs ring the device's doorbells without the BQL
The commit before this sent the device's interrupts off QEMU's main loop on
WHPX. It left the gap: a QMP screendump in PNG still cost an on-screen app
116.6-133.7 ms of frames on the Mac mini 2018 (UHD 630), against 128-148 ms
before. The vCPUs were the ones waiting. WHPX's vCPU loop took the BQL
before each run of a vCPU, so a vCPU that exited to the device's lockless
BARs, to ring a doorbell, waited the 111-123 ms png_save held it. A build
that logged those waits measured them at every screendump, while 8191 of
8192 interrupts went out directly.

vendor/qemu 0fdbf381: with kernel-irqchip and no interrupt request pending,
whpx_vcpu_pre_run skips its locked section, as kvm_arch_pre_run does with
KVM's in-kernel irqchip. With both commits, the probe's gap max at the
screendump is 33.7-34.0 ms, 60.0 fps and 0 dropped, the same as KVM's on
ms01's Iris Xe (33.3-33.7 ms). What the guest sees is the same interrupts
and the same MMIO answers, with no wait while QEMU's main loop is held.
2026-11-16 13:54:20 -08:00
..
2026-11-15 15:16:04 -08:00