Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
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.
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:
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.
(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 ***