From: Erik Rull <erik.rull@rdsoftware.de>
To: qemu-devel@nongnu.org, Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] usb: queue can have async packets too
Date: Fri, 2 Mar 2012 14:14:28 +0100 (CET) [thread overview]
Message-ID: <1320283975.776120.1330694068111.JavaMail.open-xchange@email.1und1.de> (raw)
In-Reply-To: <1330439808-524-1-git-send-email-kraxel@redhat.com>
On February 28, 2012 at 3:36 PM Gerd Hoffmann <kraxel@redhat.com> wrote:
> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
> ---
> hw/usb.c | 3 +++
> 1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/hw/usb.c b/hw/usb.c
> index 57fc5e3..fc41d62 100644
> --- a/hw/usb.c
> +++ b/hw/usb.c
> @@ -356,6 +356,9 @@ void usb_packet_complete(USBDevice *dev, USBPacket
*p)
>
> while (!QTAILQ_EMPTY(&ep->queue)) {
> p = QTAILQ_FIRST(&ep->queue);
> + if (p->state == USB_PACKET_ASYNC) {
> + break;
> + }
> assert(p->state == USB_PACKET_QUEUED);
> ret = usb_process_one(p);
> if (ret == USB_RET_ASYNC) {
> --
> 1.7.1
>
>
Hi Gerd,
this fixes my issue.
But: This + the latest GIT master causes again my problems with the
incomplete routing of host devices if the devices are plugged in before
starting up the guest. They are marked with a yellow exclamation mark in
the XP device manager. If I plug them in later, they are working fine.
This was working before the commit that cause the assertion and is now not
working again.
Please have a look at that!
Best regards,
Erik
next prev parent reply other threads:[~2012-03-02 13:14 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-28 14:36 [Qemu-devel] [PATCH] usb: queue can have async packets too Gerd Hoffmann
2012-03-02 13:14 ` Erik Rull [this message]
2012-03-02 14:15 ` Gerd Hoffmann
2012-03-05 10:22 ` Erik Rull
2012-03-06 15:40 ` Erik Rull
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=1320283975.776120.1330694068111.JavaMail.open-xchange@email.1und1.de \
--to=erik.rull@rdsoftware.de \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/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 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).