[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [Bug 1385934] Re: USB with passthrougth guest cannot en
From: |
Gonglei |
Subject: |
Re: [Qemu-devel] [Bug 1385934] Re: USB with passthrougth guest cannot enumerate USB host |
Date: |
Tue, 11 Nov 2014 09:40:44 +0800 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; rv:11.0) Gecko/20120327 Thunderbird/11.0.1 |
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
>