Bug 728120
Summary: | print error on usb speed mismatch between device and bus/port | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | juzhang <juzhang> | ||||
Component: | qemu-kvm | Assignee: | Gerd Hoffmann <kraxel> | ||||
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | medium | ||||||
Version: | 6.2 | CC: | michen, mkenneth, qzhang, qzhou, shuang, tburke, virt-maint | ||||
Target Milestone: | rc | Keywords: | Reopened | ||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | qemu-kvm-0.12.1.2-2.206.el6 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2011-12-06 15:55:10 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
juzhang
2011-08-04 06:52:40 UTC
HID devices are lowspeed devices and thus by design don't work on the highspeed EHCI adapter. It is possible to add companion UHCI controllers to the EHCI adapter, so the guest can ask EHCI to hand off the lowspeed devices which it can't handle itself to the UHCI companion. The easiest way to do this is "qemu [ ... ] -readconfig ich9-ehci-uhci.cfg -device usb-tablet,bus=ehci.0" Created attachment 517994 [details]
ich9-ehci-uhci.cfg
Forgot to mention: qemu-kvm-0.12.1.2-2.180.el6.x86_64 or newer is required. (In reply to comment #1) > HID devices are lowspeed devices and thus by design don't work on the highspeed > EHCI adapter. > Would you please tell me can promote more friendly messages when do operations like these. and like bz728167 and bz723760,maybe better :) Oh, looks like some patches slipped though when backporting. upstream complains on speed mismatch whereas rhel6 doesn't indeed ... Reproduced on qemu-kvm-0.12.1.2-2.172.el6, and verified pass on qemu-kvm-0.12.1.2-2.195.el6. Steps: Boot a guest with the speed mismatch devices. /usr/libexec/qemu-kvm -M rhel6.2.0 -enable-kvm -m 2G -smp 2,cores=2,threads=1,sockets=1 -name RHEL6.1_32 -uuid 50eba0fa-c3bc-4634-9c87-e46fc4dafab9 -rtc base=utc,clock=host,driftfix=slew -boot menu=on -drive file=/home/RHEL6.1-64-virtio.qcow2,if=none,id=drive-ide-0-0,media=disk,format=qcow2,cache=none,werror=stop,index=0 -device virtio-blk-pci,drive=drive-ide-0-0,id=ide0-0-0,bootindex=1 -netdev tap,id=hostnet1 -device virtio-net-pci,netdev=hostnet1,id=net1,mac=78:2B:CB:AF:11:11 -vnc :10 -monitor stdio -balloon none -device usb-ehci,id=ehci -device usb-tablet,bus=ehci.0 For the qemu-kvm-0.12.1.2-2.172.el6, the result is the same as bug description. For qemu-kvm-0.12.1.2-2.195.el6, it prompts: *** EHCI support is under development *** qemu-kvm: -device usb-tablet,bus=ehci.0: Warning: speed mismatch trying to attach usb device QEMU USB Tablet to bus ehci.0 qemu-kvm: -device usb-tablet,bus=ehci.0: Device 'usb-tablet' could not be initialized Also boot with "-device usb-ehci,id=ehci -device usb-hub,bus=ehci.0,port=1 -device usb-hub,bus=ehci.0,port=2 -device usb-hub,bus=ehci.0,port=3 -device usb-hub,bus=ehci.0,port=4 -device usb-storage,bus=ehci.0,port=1.1,drive=usbstick1 -drive if=none,id=usbstick1,file=disk.qcow2" The error prompts are the same. Guest can not boot up, so this issue if fixed. Moving to ON_QA because Errata Tool did not do it Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2011-1531.html |