Three changes, based on OmacVM's patches (MIT,
github.com/gillesgoetsch/OmacVM, PR #93):
- system/main.c: on macOS the main loop thread asks for user-interactive
QoS. It feeds the HDA DMA timer and the audio timer and runs virgl; at
the default QoS it waits behind the vCPU threads, so the sound breaks up.
QEMU_MAIN_LOOP_QOS=default keeps the old behaviour.
- hda-codec: on a full output ring, keep the queued samples and only reset
the catch-up debt, instead of dropping the whole 8 KB buffer (~42 ms).
- hda-codec: pacing (new "pace" property, on by default). After a stalled
main loop, take the guest's audio at most 1/32 faster than real time
instead of all at once.
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Josh Guyette <[email protected]>