Skip to content

[Regression] v9.1.1: hw/audio/hda audio output stream closes (SPICE)

Host environment

  • Operating system: Arch Linux
  • OS/kernel version: 6.6.58-1-lts
  • Architecture: x86
  • QEMU flavor: qemu-system-x86_64
  • QEMU version: QEMU emulator version 9.1.1
  • QEMU command line:
qemu-system-x86_64 \
-name guest=win10,debug-threads=on \
-chardev spicevmc,id=charchannel0,name=vdagent \
-device '{"driver":"virtserialport","bus":"virtio-serial0.0","nr":2,"chardev":"charchannel0","id":"channel0","name":"com.redhat.spice.0"}' \
-audiodev '{"id":"audio1","driver":"spice"}' \
-spice port=5900,addr=127.0.0.1,disable-ticketing=on,image-compression=off,seamless-migration=on \
-device '{"driver":"ich9-intel-hda","id":"sound0","bus":"pcie.0","addr":"0x1b"}' \
-device '{"driver":"hda-duplex","id":"sound0-codec0","bus":"sound0.0","cad":0,"audiodev":"audio1"}' \
-global ICH9-LPC.noreboot=off \
-global ICH9-LPC.disable_s3=0 \
-global ICH9-LPC.disable_s4=0 \

Emulated/Virtualized environment

  • Operating system: Windows 10 LTSC 2021
  • Architecture: x86

Description of problem

Beginning with QEMU 9.1.1, SPICE is unable to route audio from the guest to host. This affects virt-viewer as well as Looking Glass. Reverting packages to 9.1.0 restores functionality.

Reported at Arch Linux forums and Looking Glass discord


I've confirmed 6d03242a caused the regression, applying reverse patch to 9.1.1 resolves the issue

Additional information

Debugging output from the Looking Glass discord:

00:00:00.633 [I]              main.c:1735 | lg_run                         | Starting session
[New Thread 0x7fffd12006c0 (LWP 10071)]
[New Thread 0x7fffc7e006c0 (LWP 10072)]
00:00:00.633 [I]              main.c:553  | main_frameThread               | Using DMA buffer support
00:00:01.339 [I]              main.c:710  | main_frameThread               | Format: FRAME_TYPE_BGRA 2560x1400 (2560x1400) stride:2560 pitch:10240 rotation:0 hdr:0 pq:0

Thread 2 "spiceThread" received signal SIGPIPE, Broken pipe.
[Switching to Thread 0x7fffdba006c0 (LWP 10024)]
0x00007ffff712a6ea in send () from /usr/lib/libc.so.6
Edited by breakingspell
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information