qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] usb: a problem of using libusb for usb pass through
@ 2013-07-16  8:45 Gonglei (Arei)
  2013-07-22 12:58 ` Gerd Hoffmann
  0 siblings, 1 reply; 7+ messages in thread
From: Gonglei (Arei) @ 2013-07-16  8:45 UTC (permalink / raw)
  To: Gerd Hoffmann, qemu-devel@nongnu.org
  Cc: Linqiangmin, Luonengjun, Huangweidong (Hardware)

Hi, Gerd
	My Qemu version is 1.5.1, and use libusb for usb pass through.
	I pass through a host usb device to the guest by bus number and physical port, when I unplug the usb device from 
the host, and plug in on the same physical port immediately, but the usb device don't show up in the guest. 
	The qemu log show:
libusb_release_interface: -4 [NO_DEVICE]
libusbx: error [_get_usbfs_fd] libusbx couldn't open USB device /dev/bus/usb/002/004: No such file or directory
libusbx: error [_get_usbfs_fd] libusbx couldn't open USB device /dev/bus/usb/002/004: No such file or directory
libusbx: error [_get_usbfs_fd] libusbx couldn't open USB device /dev/bus/usb/002/004: No such file or directory

	I find the reason is that the global libusb_context has recorded the usb devices' devnum, but when the host device was unplugged and plugged
from the host, the devnum will change, finally cause the problem. 
	Any ideas ? Thanks!

Best Regards!
-Gonglei




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

end of thread, other threads:[~2013-08-01  1:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-16  8:45 [Qemu-devel] usb: a problem of using libusb for usb pass through Gonglei (Arei)
2013-07-22 12:58 ` Gerd Hoffmann
2013-07-25 13:21   ` Gonglei (Arei)
2013-07-30 17:13   ` Hans de Goede
2013-07-30 17:15     ` Hans de Goede
2013-07-31  9:47     ` Gerd Hoffmann
2013-08-01  1:24       ` Gonglei (Arei)

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