RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1163046 - qemu-kvm should quit when usb-host hit speed mismatch
Summary: qemu-kvm should quit when usb-host hit speed mismatch
Keywords:
Status: CLOSED DUPLICATE of bug 1179045
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.0
Hardware: x86_64
OS: All
medium
high
Target Milestone: rc
: ---
Assignee: Gerd Hoffmann
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1163048 1217326
TreeView+ depends on / blocked
 
Reported: 2014-11-12 10:03 UTC by Jun Li
Modified: 2016-06-13 12:53 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1163048 1217326 (view as bug list)
Environment:
Last Closed: 2016-06-13 12:53:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Jun Li 2014-11-12 10:03:38 UTC
Description of problem:
When boot qemu-kvm with usb-host hit a speed mismatch, qemu-kvm should quit.

Currently, it will just give some warning in HMP, can not capture any warning via QMP.

BTW, also test with virt-manager, it will hit this issue, too. So mark this bz as high Severity.

Version-Release number of selected component (if applicable):
qemu-kvm-rhev-2.1.2-6.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.boot guest with a usb-host device. cli as followings:
# /usr/libexec/qemu-kvm -monitor stdio -device ich9-usb-ehci1,id=ehci0 -device usb-host,hostbus=1,hostaddr=12,id=usb-kbd,bus=ehci0.0 -qmp tcp::8888,server,nowait
2.
3.

Actual results:
Just give some warning:
qemu-kvm: Warning: speed mismatch trying to attach usb device "Dell USB Entry Keyboard" (( speed) to bus "ehci0.0", port "1" (high speed)
qemu-kvm: Warning: speed mismatch trying to attach usb device "Dell USB Entry Keyboard" (( speed) to bus "ehci0.0", port "1" (high speed)
qemu-kvm: Warning: speed mismatch trying to attach usb device "Dell USB Entry Keyboard" (( speed) to bus "ehci0.0", port "1" (high speed)

Expected results:
One of the following methods is ok for QE.
1, should forbid to boot qemu-kvm when hit speed mismatch.
2, give some warning via QMP, so libvirt can detect this info.

Additional info:

Comment 2 Gerd Hoffmann 2014-11-12 15:01:33 UTC
usb device attach runs asyncrounously, because qemu supports hotplugging usb devices.  So we can neither exit() nor return qmp errors.

We could add some qmp events emitted by usb-host to notify libvirt about errors (and possily attach/detach too).

Needs discission upstream, don't think targeting 7.1 is realistic.

Comment 4 Gerd Hoffmann 2015-04-30 15:46:43 UTC
Related: bug 1179045

Comment 7 Gerd Hoffmann 2016-06-13 12:53:49 UTC
(In reply to Gerd Hoffmann from comment #4)
> Related: bug 1179045

Planned 1179045 fix will handle this one too.

*** This bug has been marked as a duplicate of bug 1179045 ***


Note You need to log in before you can comment on or make changes to this bug.