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:
-------------------------
Can hotplug a usb-hub to non-exist uhci port, there won't be any prompt, when hotunplug this hub, qemu-kvm hangs.
Version-Release number of selected component (if applicable):
--------------------------------------------------------------
qemu-kvm-0.12.1.2-2.184.el6.x86_64
2.6.32-191.el6.x86_64
How reproducible:
------------------
100%
Steps to Reproduce:
1.Boot guest with:
/usr/libexec/qemu-kvm -enable-kvm -M rhel6.2.0 -smp 4 -m 4G -name rhel6.1-64 -uuid 3f2ea5cd-3d29-48ff-aab2-23df1b6ae213 -drive file=RHEL-Server-6.1-64-virtio.qcow2,cache=none,if=none,rerror=stop,werror=stop,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-pci,drive=drive-virtio-disk0,id=device-virtio-disk0,bootindex=1 -netdev tap,script=/etc/qemu-ifup,id=netdev0 -device virtio-net-pci,netdev=netdev0,id=device-net0 -boot order=cd,menu=on -monitor stdio -vnc :30 -usb
2.In qemu monitor:
device_add usb-hub,port=5,id=hub1
3.In qemu monitor:
device_del hub1
Actual results:
----------------
1.After step 2:
in guest:
#lsusb
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
in qemu monitor:
(qemu) info usb
Device 0.0, Port .5, Speed 12 Mb/s, Product QEMU USB Hub
(qemu) info qtree
dev: piix3-usb-uhci, id ""
dev-prop: masterbus = <null>
dev-prop: firstport = 0
bus-prop: addr = 01.2
bus-prop: romfile = <null>
bus-prop: rombar = 1
bus-prop: multifunction = off
class USB controller, addr 00:01.2, pci id 8086:7020 (sub 1af4:1100)
bar 4: i/o at 0xc020 [0xc03f]
bus: usb.0
type USB
dev: usb-hub, id "hub1"
bus-prop: port = "5"
addr 0.0, port .5, speed 12, name QEMU USB Hub, attached
3.After step 3, qemu-kvm hangs.
Expected results:
------------------
Qemu-kvm should prompt error when hotplug usb-hub to a non-exist uhci port.
Additional info:
------------------
Ehci won't hit this issue.
Description of problem: ------------------------- Can hotplug a usb-hub to non-exist uhci port, there won't be any prompt, when hotunplug this hub, qemu-kvm hangs. Version-Release number of selected component (if applicable): -------------------------------------------------------------- qemu-kvm-0.12.1.2-2.184.el6.x86_64 2.6.32-191.el6.x86_64 How reproducible: ------------------ 100% Steps to Reproduce: 1.Boot guest with: /usr/libexec/qemu-kvm -enable-kvm -M rhel6.2.0 -smp 4 -m 4G -name rhel6.1-64 -uuid 3f2ea5cd-3d29-48ff-aab2-23df1b6ae213 -drive file=RHEL-Server-6.1-64-virtio.qcow2,cache=none,if=none,rerror=stop,werror=stop,id=drive-virtio-disk0,format=qcow2 -device virtio-blk-pci,drive=drive-virtio-disk0,id=device-virtio-disk0,bootindex=1 -netdev tap,script=/etc/qemu-ifup,id=netdev0 -device virtio-net-pci,netdev=netdev0,id=device-net0 -boot order=cd,menu=on -monitor stdio -vnc :30 -usb 2.In qemu monitor: device_add usb-hub,port=5,id=hub1 3.In qemu monitor: device_del hub1 Actual results: ---------------- 1.After step 2: in guest: #lsusb Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub in qemu monitor: (qemu) info usb Device 0.0, Port .5, Speed 12 Mb/s, Product QEMU USB Hub (qemu) info qtree dev: piix3-usb-uhci, id "" dev-prop: masterbus = <null> dev-prop: firstport = 0 bus-prop: addr = 01.2 bus-prop: romfile = <null> bus-prop: rombar = 1 bus-prop: multifunction = off class USB controller, addr 00:01.2, pci id 8086:7020 (sub 1af4:1100) bar 4: i/o at 0xc020 [0xc03f] bus: usb.0 type USB dev: usb-hub, id "hub1" bus-prop: port = "5" addr 0.0, port .5, speed 12, name QEMU USB Hub, attached 3.After step 3, qemu-kvm hangs. Expected results: ------------------ Qemu-kvm should prompt error when hotplug usb-hub to a non-exist uhci port. Additional info: ------------------ Ehci won't hit this issue.