[Bug 1116225] New: qemu ALSA backend broken
http://bugzilla.suse.com/show_bug.cgi?id=1116225 Bug ID: 1116225 Summary: qemu ALSA backend broken Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: KVM Assignee: kvm-bugs@forge.provo.novell.com Reporter: tiwai@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- It seems that qemu ALSA backend is broken. When I start an audio playback on VM, the whole VM including GUI stalls. Tested qemu 3.0.0 with qemu-audio-alsa package. Switching to PA backend seems working, so this might be specific to the audio backend. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1116225 http://bugzilla.suse.com/show_bug.cgi?id=1116225#c1 --- Comment #1 from Takashi Iwai <tiwai@suse.com> --- QEMU_AUDIO_DRV=none also works. So it's likely limited to QEMU_AUDIO_DRV=alsa. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1116225 Liang Yan <lyan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |lyan@suse.com Assignee|kvm-bugs@forge.provo.novell |lyan@suse.com |.com | -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1116225 http://bugzilla.suse.com/show_bug.cgi?id=1116225#c2 --- Comment #2 from Liang Yan <lyan@suse.com> --- hi, Takashi, thanks for the report, I am working on reproduction now. what is your guest vm? TW? which audio device are you using? what is the GUI, Gnome or KDE? Btw, which user are you using for qemu, not sure if this user has privilege to access host alsa driver or not. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1116225 http://bugzilla.suse.com/show_bug.cgi?id=1116225#c3 --- Comment #3 from Takashi Iwai <tiwai@suse.com> --- Both TW and SLSE15 VMs showed the problem, so VM is likely irrelevant. I tested the direct invocation with Gtk. qemu-system-x86_64 -machine accel=kvm -m 1024 -drive file=tw.img,format=raw,if=none,id=hd,index=0,media=disk -device virtio-scsi-pci -device scsi-hd,drive=hd -vga cirrus -net nic -net user,hostfwd=tcp::10022-:22 -soundhw hda -smp 4 It's running on a normal user on XFCE desktop without PulseAudio, and qemu can certainly access to the audio device. The problem happens with both dmix ("default") and the direct acess ("hw" or "plughw") passed to QEMU_ALSA_DAC_DEV and QEMU_ALSA_ADC_DEV. The audio with qemu worked fine in the past with the very setup and machine. It's been broken since some update, likely 3.0. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1116225 http://bugzilla.suse.com/show_bug.cgi?id=1116225#c4 Liang Yan <lyan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |CONFIRMED --- Comment #4 from Liang Yan <lyan@suse.com> --- I did see same symptom with tw here. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1116225 http://bugzilla.suse.com/show_bug.cgi?id=1116225#c5 --- Comment #5 from Liang Yan <lyan@suse.com> --- export QEMU_AUDIO_DAC_TRY_POLL=0 Disable poll mode for DAC could make it again. other audio device like ac97 could work with poll mode. Looks intel-hda could not work well with poll mode. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1116225 http://bugzilla.suse.com/show_bug.cgi?id=1116225#c6 --- Comment #6 from Liang Yan <lyan@suse.com> --- Qemu 2.12.1 is fine, suspicious commit is below: commit 280c1e1cdb24d80ecdfcdfc679ccc5e8ed7af45d Author: Gerd Hoffmann <kraxel@redhat.com> Date: Fri Jun 22 13:11:56 2018 +0200 audio/hda: create millisecond timers that handle IO Will run a git bisect tomorrow -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1116225 http://bugzilla.suse.com/show_bug.cgi?id=1116225#c7 --- Comment #7 from Liang Yan <lyan@suse.com> --- commit 9d340f6755fe3ee311f6758a453fae785ec05528 Author: Gerd Hoffmann <kraxel@redhat.com> Date: Mon Jul 2 16:55:11 2018 +0200 audio/hda: adjust larger gaps faster above commit did the trick, will figure out a solution later -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.suse.com/show_bug.cgi?id=1116225 http://bugzilla.suse.com/show_bug.cgi?id=1116225#c8 --- Comment #8 from Liang Yan <lyan@suse.com> --- issue still exists in latest upstream, will back on it again. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1116225 Liang Yan <lyan@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|lyan@suse.com |ly@xryan.net -- You are receiving this mail because: You are on the CC list for the bug.
participants (2)
-
bugzilla_noreply@novell.com
-
bugzilla_noreply@suse.com