Bug 2149191
| Summary: | [RFE][guest-agent] - USB bus type support | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | dehanmeng <demeng> |
| Component: | qemu-kvm | Assignee: | Kostiantyn Kostiuk <kkostiuk> |
| qemu-kvm sub component: | Guest Agent | QA Contact: | dehanmeng <demeng> |
| Status: | CLOSED ERRATA | Docs Contact: | |
| Severity: | medium | ||
| Priority: | medium | CC: | coli, jinzhao, juzhang, kkostiuk, qizhu, virt-maint, yvugenfi |
| Version: | 9.2 | Keywords: | FutureFeature, Triaged |
| Target Milestone: | rc | Flags: | pm-rhel:
mirror+
|
| Target Release: | --- | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | qemu-kvm-7.2.0-6.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-05-09 07:20:55 UTC | Type: | Feature Request |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
dehanmeng
2022-11-29 06:38:26 UTC
*** Bug 2149194 has been marked as a duplicate of this bug. *** Is there an upstream patch that we can attribute to resolving this bug that was already included in the qemu-7.2 rebase? If not and there's not already patches, then we should move this to a future release. Move ITM and DTM. We don't have upstream patches yet. It will be prepared in several days and sent to upstream. QE bot(pre verify): Set 'Verified:Tested,SanityOnly' as gating/tier1 test pass. Reproduce issue with previous version of qemu-guest-agent-7.2.0-5
Steps:
1. boot up guest with usb-storage:
-device '{"id": "pcie-root-port-5", "port": 5, "driver": "pcie-root-port", "addr": "0x1.0x5", "bus": "pcie.0", "chassis": 6}' \
-device '{"driver":"qemu-xhci","id":"xhci","bus":"pcie-root-port-5"}' \
-device '{"driver":"usb-storage","drive":"drive-usb-2","id":"usb-2","removable":true,"bus":"xhci.0","port":"1"}' \
-blockdev '{"driver":"file","cache":{"direct":true,"no-flush":false},"filename":"/root/m.qcow2","node-name":"drive_sys11"}' \
-blockdev '{"driver":"qcow2","node-name":"drive-usb-2","file":"drive_sys11"}' \
2. install qga inside vm and start qemu-guest-agent.service.
3. connect with guest via qga and send command '{"execute":"guest-get-fsinfo"}'
[root@dell-per7425-01 test-results]# nc -U /var/tmp/avocado_7hafq_uh/serial-org.qemu.guest_agent.0-20230202-005046-atb79fhw
Actual result:
[root@dell-per7425-01 test-results]# nc -U /var/tmp/avocado_7hafq_uh/serial-org.qemu.guest_agent.0-20230202-005046-atb79fhw
{"execute":"guest-get-fsinfo"}
{"return": [{"name": "sdc1", "total-bytes": 2142228480, "mountpoint": "/root/sdc1", "disk": [{"serial": "QEMU_QEMU_HARDDISK_1-0000:00:01.5:00.0-1-0:0", "bus-type": "unknown", "bus": 0, "unit": 0, "pci-control.......
Expected result:
bus-type should be "usb".
Verify issue with fixed version 7.2.0-6
steps as above
Actual result:
{"execute":"guest-get-fsinfo"}
{"return": [{"name": "sdc1", "total-bytes": 2142228480, "mountpoint": "/root/sdc1", "disk": [{"serial": "QEMU_QEMU_HARDDISK_1-0000:00:01.5:00.0-1-0:0", "bus-type": "usb", "bus": 0, "unit": 0, "pci-contro....
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 |