All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1385934] [NEW] USB with passthrougth guest cannot enumerate USB host
@ 2014-10-26 18:28 montjoie
  2014-10-27 14:44 ` [Qemu-devel] [Bug 1385934] " Iggy
                   ` (7 more replies)
  0 siblings, 8 replies; 11+ messages in thread
From: montjoie @ 2014-10-26 18:28 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

Following the guide at http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest
Qemu is launched with qemu-system-x86_64 /dev/vgstripe/kvm_wifi -enable-kvm -m 512 -k fr -net nic -net tap,ifname=tap1,script=/bin/ifup.script -kernel /usr/src/linux_git/arch/x86_64/boot/bzImage -append root=/dev/sda -usb -device usb-host,hostbus=1,hostaddr=6
The USB device does not show and USB stack seems not working
On the guest:
dmesg |grep -i usb
[    1.416966] hub 1-0:1.0: USB hub found
[    1.420431] usbcore: registered new interface driver usb-storage
[    1.445374] usbcore: registered new interface driver usbhid
[    1.446839] usbhid: USB HID core driver
[    1.863226] usb 1-1: new low-speed USB device number 2 using uhci_hcd
[    2.126173] usb 1-1: Invalid ep0 maxpacket: 64
[    2.373161] usb 1-1: new low-speed USB device number 3 using uhci_hcd
[    2.648112] usb 1-1: Invalid ep0 maxpacket: 64
[    2.892404] usb 1-1: new low-speed USB device number 4 using uhci_hcd
[    2.913001] usb 1-1: Invalid ep0 maxpacket: 64
[    3.161367] usb 1-1: new low-speed USB device number 5 using uhci_hcd
[    3.180070] usb 1-1: Invalid ep0 maxpacket: 64
[    3.181633] usb usb1-port1: unable to enumerate USB device
lsusb
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

On the host:
lsusb
Bus 001 Device 006: ID 0457:0163 Silicon Integrated Systems Corp. SiS163U 802.11 Wireless LAN Adapter
qemu-system-x86_64 --version
QEMU emulator version 2.1.2, Copyright (c) 2003-2008 Fabrice Bellard

** 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/1385934

Title:
  USB with passthrougth guest cannot enumerate USB host

Status in QEMU:
  New

Bug description:
  Following the guide at http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest
  Qemu is launched with qemu-system-x86_64 /dev/vgstripe/kvm_wifi -enable-kvm -m 512 -k fr -net nic -net tap,ifname=tap1,script=/bin/ifup.script -kernel /usr/src/linux_git/arch/x86_64/boot/bzImage -append root=/dev/sda -usb -device usb-host,hostbus=1,hostaddr=6
  The USB device does not show and USB stack seems not working
  On the guest:
  dmesg |grep -i usb
  [    1.416966] hub 1-0:1.0: USB hub found
  [    1.420431] usbcore: registered new interface driver usb-storage
  [    1.445374] usbcore: registered new interface driver usbhid
  [    1.446839] usbhid: USB HID core driver
  [    1.863226] usb 1-1: new low-speed USB device number 2 using uhci_hcd
  [    2.126173] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.373161] usb 1-1: new low-speed USB device number 3 using uhci_hcd
  [    2.648112] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.892404] usb 1-1: new low-speed USB device number 4 using uhci_hcd
  [    2.913001] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.161367] usb 1-1: new low-speed USB device number 5 using uhci_hcd
  [    3.180070] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.181633] usb usb1-port1: unable to enumerate USB device
  lsusb
  Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

  On the host:
  lsusb
  Bus 001 Device 006: ID 0457:0163 Silicon Integrated Systems Corp. SiS163U 802.11 Wireless LAN Adapter
  qemu-system-x86_64 --version
  QEMU emulator version 2.1.2, Copyright (c) 2003-2008 Fabrice Bellard

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

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

* [Qemu-devel] [Bug 1385934] Re: USB with passthrougth guest cannot enumerate USB host
  2014-10-26 18:28 [Qemu-devel] [Bug 1385934] [NEW] USB with passthrougth guest cannot enumerate USB host montjoie
@ 2014-10-27 14:44 ` Iggy
  2014-11-08 18:47 ` MikeFrysinger
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: Iggy @ 2014-10-27 14:44 UTC (permalink / raw)
  To: qemu-devel

You might try connecting the device to a ehci/xhci bus (instead of the
default uhci bus... i.e. USB 1.1). See docs/usb2.txt in the qemu source
for more info.

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

Title:
  USB with passthrougth guest cannot enumerate USB host

Status in QEMU:
  New

Bug description:
  Following the guide at http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest
  Qemu is launched with qemu-system-x86_64 /dev/vgstripe/kvm_wifi -enable-kvm -m 512 -k fr -net nic -net tap,ifname=tap1,script=/bin/ifup.script -kernel /usr/src/linux_git/arch/x86_64/boot/bzImage -append root=/dev/sda -usb -device usb-host,hostbus=1,hostaddr=6
  The USB device does not show and USB stack seems not working
  On the guest:
  dmesg |grep -i usb
  [    1.416966] hub 1-0:1.0: USB hub found
  [    1.420431] usbcore: registered new interface driver usb-storage
  [    1.445374] usbcore: registered new interface driver usbhid
  [    1.446839] usbhid: USB HID core driver
  [    1.863226] usb 1-1: new low-speed USB device number 2 using uhci_hcd
  [    2.126173] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.373161] usb 1-1: new low-speed USB device number 3 using uhci_hcd
  [    2.648112] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.892404] usb 1-1: new low-speed USB device number 4 using uhci_hcd
  [    2.913001] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.161367] usb 1-1: new low-speed USB device number 5 using uhci_hcd
  [    3.180070] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.181633] usb usb1-port1: unable to enumerate USB device
  lsusb
  Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

  On the host:
  lsusb
  Bus 001 Device 006: ID 0457:0163 Silicon Integrated Systems Corp. SiS163U 802.11 Wireless LAN Adapter
  qemu-system-x86_64 --version
  QEMU emulator version 2.1.2, Copyright (c) 2003-2008 Fabrice Bellard

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

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

* [Qemu-devel] [Bug 1385934] Re: USB with passthrougth guest cannot enumerate USB host
  2014-10-26 18:28 [Qemu-devel] [Bug 1385934] [NEW] USB with passthrougth guest cannot enumerate USB host montjoie
  2014-10-27 14:44 ` [Qemu-devel] [Bug 1385934] " Iggy
@ 2014-11-08 18:47 ` MikeFrysinger
  2014-11-10  6:04   ` Gonglei
  2014-11-10 17:52 ` MikeFrysinger
                   ` (5 subsequent siblings)
  7 siblings, 1 reply; 11+ messages in thread
From: MikeFrysinger @ 2014-11-08 18:47 UTC (permalink / raw)
  To: qemu-devel

the problem is this commit:
http://git.qemu.org/?p=qemu.git;a=commit;h=b791c3b38c7969cb9f4acda8229e19fd865a1c08

it's easy to reproduce -- plug in a USB flash drive and try to pass it
through

on the host:
$ lsusb
Bus 003 Device 004: ID 1307:0163 Transcend Information, Inc. 256MB/512MB/1GB Flash Drive

so launch qemu with that:
  -usbdevice host:1307:0163

and then in the VM, if it fails, you get those errors in dmesg, and the
device doesn't show up in `lsusb`.  if it passes, `lsusb` reports it
fine.

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

Title:
  USB with passthrougth guest cannot enumerate USB host

Status in QEMU:
  New

Bug description:
  Following the guide at http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest
  Qemu is launched with qemu-system-x86_64 /dev/vgstripe/kvm_wifi -enable-kvm -m 512 -k fr -net nic -net tap,ifname=tap1,script=/bin/ifup.script -kernel /usr/src/linux_git/arch/x86_64/boot/bzImage -append root=/dev/sda -usb -device usb-host,hostbus=1,hostaddr=6
  The USB device does not show and USB stack seems not working
  On the guest:
  dmesg |grep -i usb
  [    1.416966] hub 1-0:1.0: USB hub found
  [    1.420431] usbcore: registered new interface driver usb-storage
  [    1.445374] usbcore: registered new interface driver usbhid
  [    1.446839] usbhid: USB HID core driver
  [    1.863226] usb 1-1: new low-speed USB device number 2 using uhci_hcd
  [    2.126173] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.373161] usb 1-1: new low-speed USB device number 3 using uhci_hcd
  [    2.648112] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.892404] usb 1-1: new low-speed USB device number 4 using uhci_hcd
  [    2.913001] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.161367] usb 1-1: new low-speed USB device number 5 using uhci_hcd
  [    3.180070] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.181633] usb usb1-port1: unable to enumerate USB device
  lsusb
  Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

  On the host:
  lsusb
  Bus 001 Device 006: ID 0457:0163 Silicon Integrated Systems Corp. SiS163U 802.11 Wireless LAN Adapter
  qemu-system-x86_64 --version
  QEMU emulator version 2.1.2, Copyright (c) 2003-2008 Fabrice Bellard

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

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

* Re: [Qemu-devel] [Bug 1385934] Re: USB with passthrougth guest cannot enumerate USB host
  2014-11-08 18:47 ` MikeFrysinger
@ 2014-11-10  6:04   ` Gonglei
  0 siblings, 0 replies; 11+ messages in thread
From: Gonglei @ 2014-11-10  6:04 UTC (permalink / raw)
  To: Bug 1385934; +Cc: MikeFrysinger, qemu-devel

On 2014/11/9 2:47, MikeFrysinger wrote:

> the problem is this commit:
> http://git.qemu.org/?p=qemu.git;a=commit;h=b791c3b38c7969cb9f4acda8229e19fd865a1c08
> 
> it's easy to reproduce -- plug in a USB flash drive and try to pass it
> through
> 

What's your USB flash drive's version? USB1.1 or USB2.0 or 3.0?
Please post the value:

1.cat /sys/bus/usb/device/xx-xx/speed    [xx-xx: hostbus-hostport]
2.And your exact command line launched Qemu .

Best regards,
-Gonglei

> on the host:
> $ lsusb
> Bus 003 Device 004: ID 1307:0163 Transcend Information, Inc. 256MB/512MB/1GB Flash Drive
> 
> so launch qemu with that:
>   -usbdevice host:1307:0163
> 
> and then in the VM, if it fails, you get those errors in dmesg, and the
> device doesn't show up in `lsusb`.  if it passes, `lsusb` reports it
> fine.
> 

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

* [Qemu-devel] [Bug 1385934] Re: USB with passthrougth guest cannot enumerate USB host
  2014-10-26 18:28 [Qemu-devel] [Bug 1385934] [NEW] USB with passthrougth guest cannot enumerate USB host montjoie
  2014-10-27 14:44 ` [Qemu-devel] [Bug 1385934] " Iggy
  2014-11-08 18:47 ` MikeFrysinger
@ 2014-11-10 17:52 ` MikeFrysinger
  2014-11-11  1:40   ` Gonglei
  2014-12-10  9:54 ` Leen Keus
                   ` (4 subsequent siblings)
  7 siblings, 1 reply; 11+ messages in thread
From: MikeFrysinger @ 2014-11-10 17:52 UTC (permalink / raw)
  To: qemu-devel

i've attached the `lsusb -v` output for the device.  it is USB 2.0.  the
sysfs speed file shows 480.

the qemu cmdline:
qemu-system-x86_64 \
        -hda images/root \
        -hdb images/var \
        -hdc images/usr \
        -append "root=/dev/hda console=ttyS0 panic=3 init=/ginit" \
        -kernel images/bzImage \
        -nographic \
        -no-reboot \
        -m 512 \
        -enable-kvm \
        -usbdevice host:1307:0163

** Attachment added: "lsusb.txt"
   https://bugs.launchpad.net/qemu/+bug/1385934/+attachment/4257409/+files/lsusb.txt

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

Title:
  USB with passthrougth guest cannot enumerate USB host

Status in QEMU:
  New

Bug description:
  Following the guide at http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest
  Qemu is launched with qemu-system-x86_64 /dev/vgstripe/kvm_wifi -enable-kvm -m 512 -k fr -net nic -net tap,ifname=tap1,script=/bin/ifup.script -kernel /usr/src/linux_git/arch/x86_64/boot/bzImage -append root=/dev/sda -usb -device usb-host,hostbus=1,hostaddr=6
  The USB device does not show and USB stack seems not working
  On the guest:
  dmesg |grep -i usb
  [    1.416966] hub 1-0:1.0: USB hub found
  [    1.420431] usbcore: registered new interface driver usb-storage
  [    1.445374] usbcore: registered new interface driver usbhid
  [    1.446839] usbhid: USB HID core driver
  [    1.863226] usb 1-1: new low-speed USB device number 2 using uhci_hcd
  [    2.126173] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.373161] usb 1-1: new low-speed USB device number 3 using uhci_hcd
  [    2.648112] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.892404] usb 1-1: new low-speed USB device number 4 using uhci_hcd
  [    2.913001] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.161367] usb 1-1: new low-speed USB device number 5 using uhci_hcd
  [    3.180070] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.181633] usb usb1-port1: unable to enumerate USB device
  lsusb
  Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

  On the host:
  lsusb
  Bus 001 Device 006: ID 0457:0163 Silicon Integrated Systems Corp. SiS163U 802.11 Wireless LAN Adapter
  qemu-system-x86_64 --version
  QEMU emulator version 2.1.2, Copyright (c) 2003-2008 Fabrice Bellard

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

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

* Re: [Qemu-devel] [Bug 1385934] Re: USB with passthrougth guest cannot enumerate USB host
  2014-11-10 17:52 ` MikeFrysinger
@ 2014-11-11  1:40   ` Gonglei
  0 siblings, 0 replies; 11+ messages in thread
From: Gonglei @ 2014-11-11  1:40 UTC (permalink / raw)
  To: Bug 1385934; +Cc: MikeFrysinger, qemu-devel

On 2014/11/11 1:52, MikeFrysinger wrote:

> i've attached the `lsusb -v` output for the device.  it is USB 2.0.  the
> sysfs speed file shows 480.
> 

You should add an ehci controller or xhci for USB2.0 device.
Please use such below cmdline:
-device usb-ehci,id=ehci \
-device usb-host,bus=ehci.0,vendorid=1307,productid=0163

BTW, This is a really bug, and Gerd had posted a patch:
 [PATCH] usb-host: fix usb_host_speed_compat tyops
http://lists.gnu.org/archive/html/qemu-devel/2014-11/msg01441.html

After applying this patch, you will get a warning:
 "Warning: speed mismatch trying to attach..." if you use the cmdline as your showing.

Thanks,
-Gonglei

> the qemu cmdline:
> qemu-system-x86_64 \
>         -hda images/root \
>         -hdb images/var \
>         -hdc images/usr \
>         -append "root=/dev/hda console=ttyS0 panic=3 init=/ginit" \
>         -kernel images/bzImage \
>         -nographic \
>         -no-reboot \
>         -m 512 \
>         -enable-kvm \
>         -usbdevice host:1307:0163
> 
> ** Attachment added: "lsusb.txt"
>    https://bugs.launchpad.net/qemu/+bug/1385934/+attachment/4257409/+files/lsusb.txt
> 

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

* [Qemu-devel] [Bug 1385934] Re: USB with passthrougth guest cannot enumerate USB host
  2014-10-26 18:28 [Qemu-devel] [Bug 1385934] [NEW] USB with passthrougth guest cannot enumerate USB host montjoie
                   ` (2 preceding siblings ...)
  2014-11-10 17:52 ` MikeFrysinger
@ 2014-12-10  9:54 ` Leen Keus
  2014-12-31  2:52 ` Mike Frysinger
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: Leen Keus @ 2014-12-10  9:54 UTC (permalink / raw)
  To: qemu-devel

Can you check if the same error messages appear in /var/log/syslog and
/var/log/libvirt/qemu/<machine>.log as I described in bug #1392504?
Because I think it is apparmor related.

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

Title:
  USB with passthrougth guest cannot enumerate USB host

Status in QEMU:
  New

Bug description:
  Following the guide at http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest
  Qemu is launched with qemu-system-x86_64 /dev/vgstripe/kvm_wifi -enable-kvm -m 512 -k fr -net nic -net tap,ifname=tap1,script=/bin/ifup.script -kernel /usr/src/linux_git/arch/x86_64/boot/bzImage -append root=/dev/sda -usb -device usb-host,hostbus=1,hostaddr=6
  The USB device does not show and USB stack seems not working
  On the guest:
  dmesg |grep -i usb
  [    1.416966] hub 1-0:1.0: USB hub found
  [    1.420431] usbcore: registered new interface driver usb-storage
  [    1.445374] usbcore: registered new interface driver usbhid
  [    1.446839] usbhid: USB HID core driver
  [    1.863226] usb 1-1: new low-speed USB device number 2 using uhci_hcd
  [    2.126173] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.373161] usb 1-1: new low-speed USB device number 3 using uhci_hcd
  [    2.648112] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.892404] usb 1-1: new low-speed USB device number 4 using uhci_hcd
  [    2.913001] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.161367] usb 1-1: new low-speed USB device number 5 using uhci_hcd
  [    3.180070] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.181633] usb usb1-port1: unable to enumerate USB device
  lsusb
  Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

  On the host:
  lsusb
  Bus 001 Device 006: ID 0457:0163 Silicon Integrated Systems Corp. SiS163U 802.11 Wireless LAN Adapter
  qemu-system-x86_64 --version
  QEMU emulator version 2.1.2, Copyright (c) 2003-2008 Fabrice Bellard

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

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

* [Qemu-devel] [Bug 1385934] Re: USB with passthrougth guest cannot enumerate USB host
  2014-10-26 18:28 [Qemu-devel] [Bug 1385934] [NEW] USB with passthrougth guest cannot enumerate USB host montjoie
                   ` (3 preceding siblings ...)
  2014-12-10  9:54 ` Leen Keus
@ 2014-12-31  2:52 ` Mike Frysinger
  2015-03-25  8:20 ` montjoie
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 11+ messages in thread
From: Mike Frysinger @ 2014-12-31  2:52 UTC (permalink / raw)
  To: qemu-devel

looks like 79ae25af1569a50a0ec799901a1bb280c088f121 (which is in
qemu-2.2.0) makes it work again for my test case.  not sure if the OP
wants to verify as well or just close this out now.

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

Title:
  USB with passthrougth guest cannot enumerate USB host

Status in QEMU:
  New

Bug description:
  Following the guide at http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest
  Qemu is launched with qemu-system-x86_64 /dev/vgstripe/kvm_wifi -enable-kvm -m 512 -k fr -net nic -net tap,ifname=tap1,script=/bin/ifup.script -kernel /usr/src/linux_git/arch/x86_64/boot/bzImage -append root=/dev/sda -usb -device usb-host,hostbus=1,hostaddr=6
  The USB device does not show and USB stack seems not working
  On the guest:
  dmesg |grep -i usb
  [    1.416966] hub 1-0:1.0: USB hub found
  [    1.420431] usbcore: registered new interface driver usb-storage
  [    1.445374] usbcore: registered new interface driver usbhid
  [    1.446839] usbhid: USB HID core driver
  [    1.863226] usb 1-1: new low-speed USB device number 2 using uhci_hcd
  [    2.126173] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.373161] usb 1-1: new low-speed USB device number 3 using uhci_hcd
  [    2.648112] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.892404] usb 1-1: new low-speed USB device number 4 using uhci_hcd
  [    2.913001] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.161367] usb 1-1: new low-speed USB device number 5 using uhci_hcd
  [    3.180070] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.181633] usb usb1-port1: unable to enumerate USB device
  lsusb
  Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

  On the host:
  lsusb
  Bus 001 Device 006: ID 0457:0163 Silicon Integrated Systems Corp. SiS163U 802.11 Wireless LAN Adapter
  qemu-system-x86_64 --version
  QEMU emulator version 2.1.2, Copyright (c) 2003-2008 Fabrice Bellard

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

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

* [Qemu-devel] [Bug 1385934] Re: USB with passthrougth guest cannot enumerate USB host
  2014-10-26 18:28 [Qemu-devel] [Bug 1385934] [NEW] USB with passthrougth guest cannot enumerate USB host montjoie
                   ` (4 preceding siblings ...)
  2014-12-31  2:52 ` Mike Frysinger
@ 2015-03-25  8:20 ` montjoie
  2018-01-18 15:17 ` Thomas Huth
  2018-03-20  4:17 ` Launchpad Bug Tracker
  7 siblings, 0 replies; 11+ messages in thread
From: montjoie @ 2015-03-25  8:20 UTC (permalink / raw)
  To: qemu-devel

With qemu 2.2.0 I see now the usb dongle but using it give me some problem seen on the host:
libusb: error [submit_control_transfer] submiturb failed error -1 errno=22
Disabling caps and seccomp change nothing.
I strace the process and I see:
26170 ioctl(20, USBDEVFS_SUBMITURB, 0x7f00c0539eb0) = -1 EINVAL (Invalid argument)
26170 write(2, "libusb: error [submit_control_transfer] submiturb failed error -1 errno=22\n", 75) = 75

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

Title:
  USB with passthrougth guest cannot enumerate USB host

Status in QEMU:
  New

Bug description:
  Following the guide at http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest
  Qemu is launched with qemu-system-x86_64 /dev/vgstripe/kvm_wifi -enable-kvm -m 512 -k fr -net nic -net tap,ifname=tap1,script=/bin/ifup.script -kernel /usr/src/linux_git/arch/x86_64/boot/bzImage -append root=/dev/sda -usb -device usb-host,hostbus=1,hostaddr=6
  The USB device does not show and USB stack seems not working
  On the guest:
  dmesg |grep -i usb
  [    1.416966] hub 1-0:1.0: USB hub found
  [    1.420431] usbcore: registered new interface driver usb-storage
  [    1.445374] usbcore: registered new interface driver usbhid
  [    1.446839] usbhid: USB HID core driver
  [    1.863226] usb 1-1: new low-speed USB device number 2 using uhci_hcd
  [    2.126173] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.373161] usb 1-1: new low-speed USB device number 3 using uhci_hcd
  [    2.648112] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.892404] usb 1-1: new low-speed USB device number 4 using uhci_hcd
  [    2.913001] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.161367] usb 1-1: new low-speed USB device number 5 using uhci_hcd
  [    3.180070] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.181633] usb usb1-port1: unable to enumerate USB device
  lsusb
  Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

  On the host:
  lsusb
  Bus 001 Device 006: ID 0457:0163 Silicon Integrated Systems Corp. SiS163U 802.11 Wireless LAN Adapter
  qemu-system-x86_64 --version
  QEMU emulator version 2.1.2, Copyright (c) 2003-2008 Fabrice Bellard

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

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

* [Qemu-devel] [Bug 1385934] Re: USB with passthrougth guest cannot enumerate USB host
  2014-10-26 18:28 [Qemu-devel] [Bug 1385934] [NEW] USB with passthrougth guest cannot enumerate USB host montjoie
                   ` (5 preceding siblings ...)
  2015-03-25  8:20 ` montjoie
@ 2018-01-18 15:17 ` Thomas Huth
  2018-03-20  4:17 ` Launchpad Bug Tracker
  7 siblings, 0 replies; 11+ messages in thread
From: Thomas Huth @ 2018-01-18 15:17 UTC (permalink / raw)
  To: qemu-devel

Triaging old bug tickets... can you still reproduce this issue with the
latest version of QEMU? Or could we close this ticket nowadays?


** 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/1385934

Title:
  USB with passthrougth guest cannot enumerate USB host

Status in QEMU:
  Incomplete

Bug description:
  Following the guide at http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest
  Qemu is launched with qemu-system-x86_64 /dev/vgstripe/kvm_wifi -enable-kvm -m 512 -k fr -net nic -net tap,ifname=tap1,script=/bin/ifup.script -kernel /usr/src/linux_git/arch/x86_64/boot/bzImage -append root=/dev/sda -usb -device usb-host,hostbus=1,hostaddr=6
  The USB device does not show and USB stack seems not working
  On the guest:
  dmesg |grep -i usb
  [    1.416966] hub 1-0:1.0: USB hub found
  [    1.420431] usbcore: registered new interface driver usb-storage
  [    1.445374] usbcore: registered new interface driver usbhid
  [    1.446839] usbhid: USB HID core driver
  [    1.863226] usb 1-1: new low-speed USB device number 2 using uhci_hcd
  [    2.126173] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.373161] usb 1-1: new low-speed USB device number 3 using uhci_hcd
  [    2.648112] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.892404] usb 1-1: new low-speed USB device number 4 using uhci_hcd
  [    2.913001] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.161367] usb 1-1: new low-speed USB device number 5 using uhci_hcd
  [    3.180070] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.181633] usb usb1-port1: unable to enumerate USB device
  lsusb
  Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

  On the host:
  lsusb
  Bus 001 Device 006: ID 0457:0163 Silicon Integrated Systems Corp. SiS163U 802.11 Wireless LAN Adapter
  qemu-system-x86_64 --version
  QEMU emulator version 2.1.2, Copyright (c) 2003-2008 Fabrice Bellard

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

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

* [Qemu-devel] [Bug 1385934] Re: USB with passthrougth guest cannot enumerate USB host
  2014-10-26 18:28 [Qemu-devel] [Bug 1385934] [NEW] USB with passthrougth guest cannot enumerate USB host montjoie
                   ` (6 preceding siblings ...)
  2018-01-18 15:17 ` Thomas Huth
@ 2018-03-20  4:17 ` Launchpad Bug Tracker
  7 siblings, 0 replies; 11+ messages in thread
From: Launchpad Bug Tracker @ 2018-03-20  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/1385934

Title:
  USB with passthrougth guest cannot enumerate USB host

Status in QEMU:
  Expired

Bug description:
  Following the guide at http://www.linux-kvm.org/page/USB_Host_Device_Assigned_to_Guest
  Qemu is launched with qemu-system-x86_64 /dev/vgstripe/kvm_wifi -enable-kvm -m 512 -k fr -net nic -net tap,ifname=tap1,script=/bin/ifup.script -kernel /usr/src/linux_git/arch/x86_64/boot/bzImage -append root=/dev/sda -usb -device usb-host,hostbus=1,hostaddr=6
  The USB device does not show and USB stack seems not working
  On the guest:
  dmesg |grep -i usb
  [    1.416966] hub 1-0:1.0: USB hub found
  [    1.420431] usbcore: registered new interface driver usb-storage
  [    1.445374] usbcore: registered new interface driver usbhid
  [    1.446839] usbhid: USB HID core driver
  [    1.863226] usb 1-1: new low-speed USB device number 2 using uhci_hcd
  [    2.126173] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.373161] usb 1-1: new low-speed USB device number 3 using uhci_hcd
  [    2.648112] usb 1-1: Invalid ep0 maxpacket: 64
  [    2.892404] usb 1-1: new low-speed USB device number 4 using uhci_hcd
  [    2.913001] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.161367] usb 1-1: new low-speed USB device number 5 using uhci_hcd
  [    3.180070] usb 1-1: Invalid ep0 maxpacket: 64
  [    3.181633] usb usb1-port1: unable to enumerate USB device
  lsusb
  Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

  On the host:
  lsusb
  Bus 001 Device 006: ID 0457:0163 Silicon Integrated Systems Corp. SiS163U 802.11 Wireless LAN Adapter
  qemu-system-x86_64 --version
  QEMU emulator version 2.1.2, Copyright (c) 2003-2008 Fabrice Bellard

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

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

end of thread, other threads:[~2018-03-20  4:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-26 18:28 [Qemu-devel] [Bug 1385934] [NEW] USB with passthrougth guest cannot enumerate USB host montjoie
2014-10-27 14:44 ` [Qemu-devel] [Bug 1385934] " Iggy
2014-11-08 18:47 ` MikeFrysinger
2014-11-10  6:04   ` Gonglei
2014-11-10 17:52 ` MikeFrysinger
2014-11-11  1:40   ` Gonglei
2014-12-10  9:54 ` Leen Keus
2014-12-31  2:52 ` Mike Frysinger
2015-03-25  8:20 ` montjoie
2018-01-18 15:17 ` Thomas Huth
2018-03-20  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.