serial usb-device can't be passed-through to a guest

Bug #319014 reported by Nico Prenzel
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
QEMU
Fix Released
Undecided
Unassigned
CentOS
New
Undecided
Unassigned

Bug Description

Hello,

I use Debian Lenny with qemu/kvm version 79. If I try to pass-through my "US Robotics 56K USB Modem Model 5637" to any guest, I get an perror("usb_linux_update_endp_table").
So, I've searched through the qemu-devel archives and found the following thread:
http://<email address hidden>/2008-10/msg00299.html
If I remove the "return 1;" as stated above my usb modem get's successfully passed-through to the guest and the modem works fine.
Is there any chance to get serial usb devices to work out of standard qemu/kvm, without the need to apply this line to every qemu/kvm version?

NicoP.

Revision history for this message
Laurent (syrius-no-log) wrote :

it is reproduced here with jaunty and kvm 1:84+dfsg-0ubuntu12

Revision history for this message
Laurent (syrius-no-log) wrote :

but the patch doesn't work here

Revision history for this message
Nico Prenzel (nico-prenzel) wrote :

Did you really patch the right code section?
I do remember that there has been a similarly code above/below that confused me with my first try to patch.

Revision history for this message
Fabrizio Pezzella (fabrizio-pezzella) wrote :

Hi,

i have the same problem with CentOS 5.4 2.6.18-164.11.1.el5 x86, the usb key it's a "Active Key"

kvm-83-105.el5_4.13
qemu-0.10.6-1.el5.rf

dmesg
hiddev97: USB HID v1.10 Device [Eutron InfoSecurity SmartKey 3 DL] on usb-0000:00:1a.1-1.2

lsusb
Bus 004 Device 003: ID 073d:0026 Eutron S.p.a.

tail -f /var/log/libvirt/qemu/w2k3.log
usb_linux_update_endp_table: Broken pipe
Warning: could not add USB device host:073d:0026

There is a fix for this bug ?

Tnx
Fabrizio Pezzella

Revision history for this message
Nico Prenzel (nico-prenzel) wrote :

Yes,
to fix this problem use a newer kvm (or better qemu-kvm).

The fix within my first post worked too, at least for me.

Thanks.
NicoP

Changed in qemu:
status: New → Fix Released
Revision history for this message
Nico Prenzel (nico-prenzel) wrote :

Hello Anthony,

which qemu-kvm version do you expect to work with serial usb devices?

After you've changed this ticket status and I've checked it again with qemu-kvm version 0.12.4. The reported error message is gone away and the device is present in the guest. The cdc_acm driver loads too without any visible problems, but the device is still unusable.
The device data led flash if it gets un/initialized by minicom.
But if I try to make a test dial, nothing happens after I call a phone number.

To be more precise:
-host dosn't have loaded the cdc_acm driver
-guest loads the cdc_acm driver
-a dial with minicom to the same phone number works on the host, if I load the cdc_acm within the host

I would like to get this fixed, as I really want to use this usb-device as my dusty fax again.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.