All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: Hans de Goede <hdegoede@redhat.com>, qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] husb: out of buffers for iso stream
Date: Wed, 23 Nov 2011 17:01:30 +0100	[thread overview]
Message-ID: <4ECD18DA.8080804@redhat.com> (raw)
In-Reply-To: <CAJSP0QX6c+jfgZUNMhqdKbVbd3h00ZQqbuEkozQPOgnbz95-Fw@mail.gmail.com>

On 11/19/11 20:40, Stefan Hajnoczi wrote:
> I have a Windows 7 VM running a sound driver for a passthrough USB
> host device.  The driver submits iso in and out urbs to do audio
> capture and playback at the same time.
> 
> Audacity running inside the guest freezes and does not record audio
> unless I move the mouse.  Somehow it seems USB iso urbs aren't being
> pumped unless I keep moving the mouse.  The VM is using VNC.

I have no idea how moving the mouse could possibly help here.

> Checking the QEMU stderr logs I see many occurrences of "husb: out of
> buffers for iso stream".  Perhaps this message is enough to pinpoint
> the problem?

It means the number of buffers in flight (on the host side) went down to
zero, i.e. the stream is interrupted.

usb-host maintains a set of buffers (four by default) per iso endpoint
to keep the constant data flow up, i.e. pass one buffer to the guest
while the host fills the next one.  Now the host has no more buffers to
fill.  Most likely usb-host sits on a bunch of full buffers which it
hasn't passed to the guest yet.

For starter try a higher number of buffers (isobufs property).
Also make sure you enable the vnc thread (unless you have already).

cheers,
  Gerd

  reply	other threads:[~2011-11-23 16:01 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-19 19:40 [Qemu-devel] husb: out of buffers for iso stream Stefan Hajnoczi
2011-11-23 16:01 ` Gerd Hoffmann [this message]
2011-11-24  9:04   ` Stefan Hajnoczi
2011-11-30 13:52     ` Stefan Hajnoczi
2011-11-30 15:45       ` Gerd Hoffmann
2011-11-24  9:43   ` Peter Maydell
2011-11-24 11:11     ` Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4ECD18DA.8080804@redhat.com \
    --to=kraxel@redhat.com \
    --cc=hdegoede@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.