Bug 1862021

Summary: Boot fails with usb-bot device
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 NOTABUG Docs Contact:
Severity: low    
Priority: high CC: coli, ddepaula, jinzhao, juzhang, kraxel, pkrempa, virt-maint, yduan
Version: 8.3Keywords: Regression
Target Milestone: rc   
Target Release: 8.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1866133 (view as bug list) Environment:
Last Closed: 2020-08-04 23:46: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:
Attachments:
Description Flags
usb_bot none

Description yduan 2020-07-30 08:12:53 UTC
Created attachment 1702900 [details]
usb_bot

Description of problem:
Boot fails with usb-bot device

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

Guest:
4.18.0-221.el8.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Boot VM with usb-bot device:
/usr/libexec/qemu-kvm \
......
 -device usb-bot,id=usbbot,bus=usb1.0,port=2 \
 -blockdev node-name=file_image1,driver=file,aio=threads,filename=/home/kvm_autotest_root/images/rhel830-64-virtio-scsi.qcow2,cache.direct=on,cache.no-flush=off \
 -blockdev node-name=drive_image1,driver=qcow2,cache.direct=on,cache.no-flush=off,file=file_image1 \
 -device scsi-hd,id=image1,drive=drive_image1,write-cache=on,bus=usbbot.0,scsi-id=0,lun=0 \
......

Actual results:
Boot failed as attachment.

Expected results:
Boot should succeed with usb-bot device.

Additional info:
Cannot reproduce this with qemu-kvm-4.2.0-31.module+el8.3.0+7437+4bb96e0d.x86_64

Comment 3 Gerd Hoffmann 2020-08-04 12:58:12 UTC
> qemu-kvm-5.0.0-2.module+el8.3.0+7379+0505d6ca.x86_64

Which upstream qemu version is this?
Also which usb host adapter?

We had a usb-bot/usb-storage regression upstream.
Triggered with xhci only.  Fixed in 5.1-rc2.

Comment 6 yduan 2020-08-05 06:09:43 UTC
(In reply to Gerd Hoffmann from comment #3)
> > qemu-kvm-5.0.0-2.module+el8.3.0+7379+0505d6ca.x86_64
> 
> Which upstream qemu version is this?

Hi Danilo,
Could you please provide the corresponding upstream qemu version?

> Also which usb host adapter?

Hi Gerd,
I met this with nec-usb-xhci or qemu-xhci. Yes, it's not reproducible with usb-ehci.

> 
> We had a usb-bot/usb-storage regression upstream.
> Triggered with xhci only.  Fixed in 5.1-rc2.

Thanks!

Comment 7 Danilo de Paula 2020-08-05 15:36:27 UTC
(In reply to yduan from comment #6)
> (In reply to Gerd Hoffmann from comment #3)
> > > qemu-kvm-5.0.0-2.module+el8.3.0+7379+0505d6ca.x86_64
> > 
> > Which upstream qemu version is this?
> 
> Hi Danilo,
> Could you please provide the corresponding upstream qemu version?
> 

From the version it should be in 5.0.0