Bug 1862021 - Boot fails with usb-bot device
Summary: Boot fails with usb-bot device
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: qemu-kvm
Version: 8.3
Hardware: Unspecified
OS: Unspecified
high
low
Target Milestone: rc
: 8.3
Assignee: Virtualization Maintenance
QA Contact: yduan
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-07-30 08:12 UTC by yduan
Modified: 2020-08-05 15:36 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
: 1866133 (view as bug list)
Environment:
Last Closed: 2020-08-04 23:46:51 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
usb_bot (8.32 KB, image/png)
2020-07-30 08:12 UTC, yduan
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.