qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Linux KVM, Windows 7 guest choppy sound
@ 2012-09-07 16:09 Erik Lotspeich
  2012-09-08 10:53 ` Jan Kiszka
  0 siblings, 1 reply; 6+ messages in thread
From: Erik Lotspeich @ 2012-09-07 16:09 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] Linux KVM, Windows 7 guest choppy sound
  2012-09-07 16:09 [Qemu-devel] Linux KVM, Windows 7 guest choppy sound Erik Lotspeich
@ 2012-09-08 10:53 ` Jan Kiszka
  2012-09-09 14:50   ` Avi Kivity
       [not found]   ` <504F4948.3020809@lotspeich.org>
  0 siblings, 2 replies; 6+ messages in thread
From: Jan Kiszka @ 2012-09-08 10:53 UTC (permalink / raw)
  To: Erik Lotspeich; +Cc: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1284 bytes --]

On 2012-09-07 18:09, Erik Lotspeich wrote:
> 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?

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


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] Linux KVM, Windows 7 guest choppy sound
  2012-09-08 10:53 ` Jan Kiszka
@ 2012-09-09 14:50   ` Avi Kivity
  2012-09-10  9:06     ` Jan Kiszka
       [not found]   ` <504F4948.3020809@lotspeich.org>
  1 sibling, 1 reply; 6+ messages in thread
From: Avi Kivity @ 2012-09-09 14:50 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Erik Lotspeich, qemu-devel

On 09/08/2012 01:53 PM, Jan Kiszka wrote:
> On 2012-09-07 18:09, Erik Lotspeich wrote:
>> 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?
> 
> 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.


-- 
error compiling committee.c: too many arguments to function

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] Linux KVM, Windows 7 guest choppy sound
  2012-09-09 14:50   ` Avi Kivity
@ 2012-09-10  9:06     ` Jan Kiszka
  2012-09-10  9:12       ` Avi Kivity
  0 siblings, 1 reply; 6+ messages in thread
From: Jan Kiszka @ 2012-09-10  9:06 UTC (permalink / raw)
  To: Avi Kivity; +Cc: Erik Lotspeich, qemu-devel

[-- Attachment #1: Type: text/plain, Size: 1470 bytes --]

On 2012-09-09 16:50, Avi Kivity wrote:
> On 09/08/2012 01:53 PM, Jan Kiszka wrote:
>> On 2012-09-07 18:09, Erik Lotspeich wrote:
>>> 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?
>>
>> 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



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 259 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] Linux KVM, Windows 7 guest choppy sound
  2012-09-10  9:06     ` Jan Kiszka
@ 2012-09-10  9:12       ` Avi Kivity
  0 siblings, 0 replies; 6+ messages in thread
From: Avi Kivity @ 2012-09-10  9:12 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: Erik Lotspeich, qemu-devel

On 09/10/2012 12:06 PM, Jan Kiszka wrote:

>>> 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.

> 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.

-- 
error compiling committee.c: too many arguments to function

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: [Qemu-devel] Linux KVM, Windows 7 guest choppy sound
       [not found]   ` <504F4948.3020809@lotspeich.org>
@ 2012-09-11 14:34     ` Jan Kiszka
  0 siblings, 0 replies; 6+ messages in thread
From: Jan Kiszka @ 2012-09-11 14:34 UTC (permalink / raw)
  To: Erik Lotspeich; +Cc: qemu-devel

[re-adding the list]

On 2012-09-11 16:23, Erik Lotspeich wrote:
> On 09/08/2012 05:53 AM, Jan Kiszka wrote:
>> 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

-- 
Siemens AG, Corporate Technology, CT RTC ITP SDP-DE
Corporate Competence Center Embedded Linux

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-09-11 14:34 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-07 16:09 [Qemu-devel] Linux KVM, Windows 7 guest choppy sound Erik Lotspeich
2012-09-08 10:53 ` Jan Kiszka
2012-09-09 14:50   ` Avi Kivity
2012-09-10  9:06     ` Jan Kiszka
2012-09-10  9:12       ` Avi Kivity
     [not found]   ` <504F4948.3020809@lotspeich.org>
2012-09-11 14:34     ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).