Skip to contentSkip to conversation

Linux KVM, Windows 7 guest choppy sound

Qemu-devel Erik Lotspeich 4 participants 6 messages Sep 7, 2012 – Sep 11, 2012 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

Hi,

I apologize if this isn't the right venue for this message, but this mailing list seems a bit more active than qemu-discuss.

Background:
I am running OpenSUSE 12.1. I fixed audio issues in VM guests by setting the following in qemu.conf:

vnc_allow_host_audio = 1

I also set user= and group= to allow qemu-kvm to run as the same user as I am logged in as. This allowed qemu-kvm to send audio to pulseaudio.

My issue:
I am using the ICH6 virtual audio driver in my VMs. In my Linux VMs, the sound works perfectly without any issues. In my Windows 7 VM, the sound works with the exception of static and choppiness in the audio. Has anyone else seen this or have any ideas for a fix?

Thanks!

Regards

Erik

#1 lore raw
Quoted 11 lines · Erik Lotspeich

Hi,

I apologize if this isn't the right venue for this message, but this mailing list seems a bit more active than qemu-discuss.

Background:
I am running OpenSUSE 12.1. I fixed audio issues in VM guests by setting the following in qemu.conf:

vnc_allow_host_audio = 1

Quoted 8 lines

I also set user= and group= to allow qemu-kvm to run as the same user as I am logged in as. This allowed qemu-kvm to send audio to pulseaudio.

My issue:
I am using the ICH6 virtual audio driver in my VMs. In my Linux VMs, the sound works perfectly without any issues. In my Windows 7 VM, the sound works with the exception of static and choppiness in the audio. Has anyone else seen this or have any ideas for a fix?

Known issue, likely unfixable in QEMU due to hard-coded constraints of the driver Windows uses (too small playback buffers).

I gave up on hda, I'm happily using a passed-through USB headset now. Another known-to-work alternative is PCI passthrough of the host sound hardware. However, both approaches are no option when the host is out of reach.

What seems to work better - but is lacking input support - is usb-audio. Maybe worth a try when you don't need a microphone.

Jan

#2 lore raw
Quoted 15 lines · Jan Kiszka
Quoted 14 lines · Erik Lotspeich

Hi,

I apologize if this isn't the right venue for this message, but this mailing list seems a bit more active than qemu-discuss.

Background:
I am running OpenSUSE 12.1. I fixed audio issues in VM guests by setting the following in qemu.conf:

vnc_allow_host_audio = 1

I also set user= and group= to allow qemu-kvm to run as the same user as I am logged in as. This allowed qemu-kvm to send audio to pulseaudio.

Quoted 8 lines
Quoted 5 lines

My issue:
I am using the ICH6 virtual audio driver in my VMs. In my Linux VMs, the sound works perfectly without any issues. In my Windows 7 VM, the sound works with the exception of static and choppiness in the audio. Has anyone else seen this or have any ideas for a fix?

Known issue, likely unfixable in QEMU due to hard-coded constraints of the driver Windows uses (too small playback buffers).

Would using real-time priority for the guest improve things?

Of course that can be dangerous if the guest decides to spin and has as many vcpus as you have cores.

Signature · 1 line
error compiling committee.c: too many arguments to function
#3 lore raw
Quoted 22 lines · Avi Kivity
Quoted 21 lines · Jan Kiszka
Quoted 19 lines · Erik Lotspeich

Hi,

I apologize if this isn't the right venue for this message, but this mailing list seems a bit more active than qemu-discuss.

Background:
I am running OpenSUSE 12.1. I fixed audio issues in VM guests by setting the following in qemu.conf:

vnc_allow_host_audio = 1

I also set user= and group= to allow qemu-kvm to run as the same user as I am logged in as. This allowed qemu-kvm to send audio to pulseaudio.

My issue:
I am using the ICH6 virtual audio driver in my VMs. In my Linux VMs, the sound works perfectly without any issues. In my Windows 7 VM, the sound works with the exception of static and choppiness in the audio. Has anyone else seen this or have any ideas for a fix?

Quoted 7 lines
Quoted 2 lines

Known issue, likely unfixable in QEMU due to hard-coded constraints of the driver Windows uses (too small playback buffers).

Would using real-time priority for the guest improve things?

Of course that can be dangerous if the guest decides to spin and has as many vcpus as you have cores.

We need to decouple the data path of that device from the rest of QEMU first. Just prioritizing likely doesn't help. And then the problem might be getting sufficient reactivity from the QEMU-external audio data path as well.

Jan

#4 lore raw
Quoted 10 lines · Jan Kiszka
Quoted 7 lines
Quoted 2 lines

Known issue, likely unfixable in QEMU due to hard-coded constraints of the driver Windows uses (too small playback buffers).

Would using real-time priority for the guest improve things?

Of course that can be dangerous if the guest decides to spin and has as many vcpus as you have cores.

We need to decouple the data path of that device from the rest of QEMU first. Just prioritizing likely doesn't help.

Depends on what the guest is doing, but likely you are right. Luckily we're already doing that.

Quoted 3 lines

And then the problem might
be getting sufficient reactivity from the QEMU-external audio data path as well.

Those already have realtime priority. Doesn't guarantee the path is short enough but it may work.

Signature · 1 line
error compiling committee.c: too many arguments to function

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw

[re-adding the list]

Quoted 11 lines · Erik Lotspeich
Quoted 2 lines · Jan Kiszka

Known issue, likely unfixable in QEMU due to hard-coded constraints of the driver Windows uses (too small playback buffers).

Thanks so much for your response on this. Even though there is no immediate fix, it is good to know that it is a known issue.

I appreciate your suggestion regarding USB devices as well. I believe that requires VT-d support which I cannot enable since I am one of those unlucky users who experiences the lockups on boot with Nvidia and VT-d enabled on my Lenovo W520.

Host sound controller pass-through requires VT-d, USB device pass-through does not.

Jan

Signature · 2 lines
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux