Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1859236

Summary: pointless warning message when hotplug/unplug usb-host device to usb-ehci controller repeatedly
Product: Red Hat Enterprise Linux Advanced Virtualization Reporter: yduan
Component: qemu-kvmAssignee: Virtualization Maintenance <virt-maint>
qemu-kvm sub component: USB QA Contact: yduan
Status: CLOSED CURRENTRELEASE Docs Contact:
Severity: low    
Priority: low CC: coli, jinzhao, juzhang, philmd, virt-maint, yduan
Version: 8.3Keywords: Triaged
Target Milestone: rcFlags: pm-rhel: mirror+
Target Release: 8.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-08-17 13:34:25 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:

Description yduan 2020-07-21 14:13:51 UTC
Description of problem:
pointless warning message when hotplug/unplug usb-host device to usb-ehci controller repeatedly

Version-Release number of selected component (if applicable):
4.18.0-226.el8.x86_64
qemu-kvm-5.0.0-2.module+el8.3.0+7379+0505d6ca.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Boot VM with usb-ehci controller:
/usr/libexec/qemu-kvm \
...
 -device pcie-root-port,id=pcie-root-port-1,port=0x1,addr=0x1.0x1,bus=pcie.0,chassis=2 \
 -device usb-ehci,id=usbtest,bus=pcie-root-port-1,addr=0x0 \
 -monitor stdio \
 -monitor unix:/tmp/monitor,server,nowait \
...

2.Hotplug/unplug usb-host device to the usb-ehci controller repeatedly:
# for((i=1;i<=100;i++));do echo "device_add usb-host,id=usbhub$i,hostbus=1,hostaddr=2,bus=usbtest.0" |nc -U /tmp/monitor;echo "info usb" |nc -U /tmp/monitor; sleep 2; echo "device_del usbhub$i" |nc -U /tmp/monitor;echo "info usb" |nc -U /tmp/monitor;sleep 2; done

Actual results:
pointless warning message in HMP:
(qemu) qemu-kvm: warning: no device attached to queue
qemu-kvm: warning: no device attached to queue
qemu-kvm: warning: no device attached to queue
qemu-kvm: warning: no device attached to queue
qemu-kvm: warning: no device attached to queue

Expected results:
According to https://bugzilla.redhat.com/show_bug.cgi?id=1380895#c31, we can disable this pointless printing.

Additional info:

Comment 2 Philippe Mathieu-Daudé 2021-08-17 13:34:25 UTC
Fixed by commit 10b2d90c94 which is included in rhel-av-8.4.0, so fixing as CURRENTRELEASE 8.4.0.