Bug 2144436
Summary: | usb device cannot be found in VM when starting VM with a usb-redir device | ||||||
---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 9 | Reporter: | Han Han <hhan> | ||||
Component: | qemu-kvm | Assignee: | Gerd Hoffmann <kraxel> | ||||
qemu-kvm sub component: | USB | QA Contact: | yduan | ||||
Status: | CLOSED ERRATA | Docs Contact: | |||||
Severity: | unspecified | ||||||
Priority: | unspecified | CC: | chwen, dzheng, hhan, jinzhao, jtomko, juzhang, kraxel, mrezanin, vgoyal, victortoso, virt-maint, xuwei, zhguo | ||||
Version: | 9.2 | Keywords: | Automation, Regression, Triaged | ||||
Target Milestone: | rc | ||||||
Target Release: | --- | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Whiteboard: | |||||||
Fixed In Version: | qemu-kvm-7.2.0-1.el9 | Doc Type: | If docs needed, set a value | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2023-05-09 07:20:51 UTC | Type: | Bug | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 2135806 | ||||||
Bug Blocks: | 2135760 | ||||||
Attachments: |
|
Description
Han Han
2022-11-21 09:17:15 UTC
Ján, Please help to check if it is a issue of libvirt. I have bisected this to QEMU commit: commit 0631d4b448454ae8a1ab091c447e3f71ab6e088a usbredir: avoid queuing hello packet on snapshot restore git describe: v7.0.0-1841-g0631d4b448 contains: v7.1.0-rc0~63^2~4 A revert has been proposed by the author but was not merged: https://lists.gnu.org/archive/html/qemu-devel/2022-08/msg02068.html Hi, just for more context, the original patch [0] was fixing a behavior in usbredir that affected QEMU even when no usbredir was being used. In usbredir, this behavior was reverted with [1]. [0] https://gitlab.com/qemu-project/qemu/-/commit/0631d4b448454ae8a1ab091c447e3f71ab6e088a [1] https://gitlab.freedesktop.org/spice/usbredir/-/merge_requests/61 Gerd - should/can the patch from above that Jano reviewed get merged before qemu-7.2 so it can be included into RHEL 9.2? (In reply to John Ferlan from comment #4) > Gerd - should/can the patch from above that Jano reviewed get merged before > qemu-7.2 so it can be included into RHEL 9.2? Looking .... Hmm, it's actually part of a three patch series, where patch #2 introduces a new runstate. I don't think that kind of change is a good idea during 7.2 release freeze. The rest of the series is irrelevant. It implements a workaround that is no longer needed. Patch 1/3 reverts the original workaround, which broke usbredir with libvirt. Would it be helpful if I resent the patch separately? Adding needinfo just to be sure Gerd sees the question in time I resent the patch, just in case: https://lists.gnu.org/archive/html/qemu-devel/2022-11/msg03769.html Reproduced with following components: 5.14.0-200.el9.x86_64 qemu-kvm-7.1.0-5.el9.x86_64 usbredir-0.12.0-3.el9.x86_64 usbredir-server-0.12.0-3.el9.x86_64 libusbx-1.0.26-1.el9.x86_64 usb.usb_redir.via_tcp The upstream patch is merged and will be present in qemu-7.2, adjusting other fields (ITR, DTM, depends on bug, State, DevelWhiteboard, devel_ack)... Dropping the needinfo - thanks Gerd for getting this in! Test case usb_device.redirdev.tcp.usb2_0.companion.pcie-root.pcie-root-port.pcie-to-pci-bridge passed on qemu-kvm-7.2.0-1.el9 QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass. 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 (Moderate: qemu-kvm security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2023:2162 |