* [Qemu-devel] [Bug 1689003] [NEW] USB passthrough should not fail if SET CONFIGURATION fails
@ 2017-05-07 4:25 Manfred Härtel
2017-05-12 11:49 ` [Qemu-devel] [Bug 1689003] " Manfred Härtel
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Manfred Härtel @ 2017-05-07 4:25 UTC (permalink / raw)
To: qemu-devel
Public bug reported:
QEMU's USB passthrough was not working for my new smartphone.
While analyzing the problem, I found out that a SET CONFIGURATION
Request was NACKed by the USB device (probably because a SET
CONFIGURATION request was already sent from the host to the device).
So I wrote a simple program to fake a successful call to
libusb_set_configuration and did an LD_PRELOAD on this program before
starting qemu, and it worked.
Looking at QEMU's code in host-libusb.c, I can see that QEMU does not
try to claim the interface if its call to libusb_set_configuration
fails.
I think QEMU should try to claim the device anyway even if
libusb_set_configuration fails.
I did my tests against QEMU 2.6.2, but as I can see from the source
code, this problem should happen on all versions.
** Affects: qemu
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1689003
Title:
USB passthrough should not fail if SET CONFIGURATION fails
Status in QEMU:
New
Bug description:
QEMU's USB passthrough was not working for my new smartphone.
While analyzing the problem, I found out that a SET CONFIGURATION
Request was NACKed by the USB device (probably because a SET
CONFIGURATION request was already sent from the host to the device).
So I wrote a simple program to fake a successful call to
libusb_set_configuration and did an LD_PRELOAD on this program before
starting qemu, and it worked.
Looking at QEMU's code in host-libusb.c, I can see that QEMU does not
try to claim the interface if its call to libusb_set_configuration
fails.
I think QEMU should try to claim the device anyway even if
libusb_set_configuration fails.
I did my tests against QEMU 2.6.2, but as I can see from the source
code, this problem should happen on all versions.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1689003/+subscriptions
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Qemu-devel] [Bug 1689003] Re: USB passthrough should not fail if SET CONFIGURATION fails
2017-05-07 4:25 [Qemu-devel] [Bug 1689003] [NEW] USB passthrough should not fail if SET CONFIGURATION fails Manfred Härtel
@ 2017-05-12 11:49 ` Manfred Härtel
2020-11-09 17:03 ` Thomas Huth
2021-01-09 4:17 ` Launchpad Bug Tracker
2 siblings, 0 replies; 4+ messages in thread
From: Manfred Härtel @ 2017-05-12 11:49 UTC (permalink / raw)
To: qemu-devel
The attached simple program, compiled as a library, loaded by LD_PRELOAD
before starting QEMU, avoids the problem by faking success of
libusb_set_configuration(), as a workaround.
** Attachment added: "usbnosetconf.c"
https://bugs.launchpad.net/qemu/+bug/1689003/+attachment/4875574/+files/usbnosetconf.c
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1689003
Title:
USB passthrough should not fail if SET CONFIGURATION fails
Status in QEMU:
New
Bug description:
QEMU's USB passthrough was not working for my new smartphone.
While analyzing the problem, I found out that a SET CONFIGURATION
Request was NACKed by the USB device (probably because a SET
CONFIGURATION request was already sent from the host to the device).
So I wrote a simple program to fake a successful call to
libusb_set_configuration and did an LD_PRELOAD on this program before
starting qemu, and it worked.
Looking at QEMU's code in host-libusb.c, I can see that QEMU does not
try to claim the interface if its call to libusb_set_configuration
fails.
I think QEMU should try to claim the device anyway even if
libusb_set_configuration fails.
I did my tests against QEMU 2.6.2, but as I can see from the source
code, this problem should happen on all versions.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1689003/+subscriptions
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug 1689003] Re: USB passthrough should not fail if SET CONFIGURATION fails
2017-05-07 4:25 [Qemu-devel] [Bug 1689003] [NEW] USB passthrough should not fail if SET CONFIGURATION fails Manfred Härtel
2017-05-12 11:49 ` [Qemu-devel] [Bug 1689003] " Manfred Härtel
@ 2020-11-09 17:03 ` Thomas Huth
2021-01-09 4:17 ` Launchpad Bug Tracker
2 siblings, 0 replies; 4+ messages in thread
From: Thomas Huth @ 2020-11-09 17:03 UTC (permalink / raw)
To: qemu-devel
The QEMU project is currently considering to move its bug tracking to another system. For this we need to know which bugs are still valid and which could be closed already. Thus we are setting older bugs to "Incomplete" now.
If you still think this bug report here is valid, then please switch the state back to "New" within the next 60 days, otherwise this report will be marked as "Expired". Thank you and sorry for the inconvenience.
** Changed in: qemu
Status: New => Incomplete
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1689003
Title:
USB passthrough should not fail if SET CONFIGURATION fails
Status in QEMU:
Incomplete
Bug description:
QEMU's USB passthrough was not working for my new smartphone.
While analyzing the problem, I found out that a SET CONFIGURATION
Request was NACKed by the USB device (probably because a SET
CONFIGURATION request was already sent from the host to the device).
So I wrote a simple program to fake a successful call to
libusb_set_configuration and did an LD_PRELOAD on this program before
starting qemu, and it worked.
Looking at QEMU's code in host-libusb.c, I can see that QEMU does not
try to claim the interface if its call to libusb_set_configuration
fails.
I think QEMU should try to claim the device anyway even if
libusb_set_configuration fails.
I did my tests against QEMU 2.6.2, but as I can see from the source
code, this problem should happen on all versions.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1689003/+subscriptions
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug 1689003] Re: USB passthrough should not fail if SET CONFIGURATION fails
2017-05-07 4:25 [Qemu-devel] [Bug 1689003] [NEW] USB passthrough should not fail if SET CONFIGURATION fails Manfred Härtel
2017-05-12 11:49 ` [Qemu-devel] [Bug 1689003] " Manfred Härtel
2020-11-09 17:03 ` Thomas Huth
@ 2021-01-09 4:17 ` Launchpad Bug Tracker
2 siblings, 0 replies; 4+ messages in thread
From: Launchpad Bug Tracker @ 2021-01-09 4:17 UTC (permalink / raw)
To: qemu-devel
[Expired for QEMU because there has been no activity for 60 days.]
** Changed in: qemu
Status: Incomplete => Expired
--
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1689003
Title:
USB passthrough should not fail if SET CONFIGURATION fails
Status in QEMU:
Expired
Bug description:
QEMU's USB passthrough was not working for my new smartphone.
While analyzing the problem, I found out that a SET CONFIGURATION
Request was NACKed by the USB device (probably because a SET
CONFIGURATION request was already sent from the host to the device).
So I wrote a simple program to fake a successful call to
libusb_set_configuration and did an LD_PRELOAD on this program before
starting qemu, and it worked.
Looking at QEMU's code in host-libusb.c, I can see that QEMU does not
try to claim the interface if its call to libusb_set_configuration
fails.
I think QEMU should try to claim the device anyway even if
libusb_set_configuration fails.
I did my tests against QEMU 2.6.2, but as I can see from the source
code, this problem should happen on all versions.
To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1689003/+subscriptions
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-01-09 4:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-07 4:25 [Qemu-devel] [Bug 1689003] [NEW] USB passthrough should not fail if SET CONFIGURATION fails Manfred Härtel
2017-05-12 11:49 ` [Qemu-devel] [Bug 1689003] " Manfred Härtel
2020-11-09 17:03 ` Thomas Huth
2021-01-09 4:17 ` Launchpad Bug Tracker
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.