All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Huth <1843711@bugs.launchpad.net>
To: qemu-devel@nongnu.org
Subject: [Bug 1843711] Re: qemu-xhci device should detect if libusb host supports streams
Date: Wed, 05 May 2021 14:28:52 -0000	[thread overview]
Message-ID: <162022493225.3221.11931049616339645983.malone@gac.canonical.com> (raw)
In-Reply-To: 156829271040.1120.16860411935336460779.malonedeb@wampee.canonical.com

This is an automated cleanup. This bug report has been moved to QEMU's
new bug tracker on gitlab.com and thus gets marked as 'expired' now.
Please continue with the discussion here:

 https://gitlab.com/qemu-project/qemu/-/issues/182


** Changed in: qemu
       Status: New => Expired

** Bug watch added: gitlab.com/qemu-project/qemu/-/issues #182
   https://gitlab.com/qemu-project/qemu/-/issues/182

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1843711

Title:
  qemu-xhci device should detect if libusb host supports streams

Status in QEMU:
  Expired

Bug description:
  When using USB passthrough with the qemu-xhci (and nec-usb-xhci),
  streams are enabled by default, but if the host xHCI controller
  doesn't support them, it will trigger hard-to-debug UAS guest errors.

  This should be possible to detect since the kernel returns ENOSYS (errno 38) when xhci host controller does not support streams:
              libusb: error [do_streams_ioctl] streams-ioctl failed error -1 errno 38
              qemu: libusb_alloc_streams: -99 [OTHER]

  Maybe libusb should return a dedicated error instead of
  LIBUSB_ERROR_OTHER in this case, but qemu does not handle any other
  error code anyway.

  Just trying to enable streams before enabling them in qemu should do
  it. I don't know if it should be done in hcd-xhci.c, host-libusb.c or
  elsewhere, but this would be detectable at launch instead of a static
  option true/false, maybe a ternary with auto would be better.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1843711/+subscriptions


      parent reply	other threads:[~2021-05-05 14:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-12 12:51 [Qemu-devel] [Bug 1843711] [NEW] qemu-xhci device should detect if libusb host supports streams Anisse Astier
2021-04-22  7:32 ` [Bug 1843711] " Thomas Huth
2021-04-30 14:51 ` Anisse Astier
2021-05-05 14:28 ` Thomas Huth [this message]

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=162022493225.3221.11931049616339645983.malone@gac.canonical.com \
    --to=1843711@bugs.launchpad.net \
    --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 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.