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.

Bug 920104

Summary: qemu core dump when booting guest with 54 usb storage devices in one xhci controller
Product: Red Hat Enterprise Linux 7 Reporter: FuXiangChun <xfu>
Component: qemu-kvmAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: medium    
Version: 7.0CC: acathrow, hhuang, juzhang, michen, qzhou, rhod, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-05-14 14:25: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:
Attachments:
Description Flags
boot guest command line none

Description FuXiangChun 2013-03-11 11:00:56 UTC
Description of problem:
As subject, If boot guest with 53 usb storage devices in one xhci controller, qemu boot successful. In other words, one xhci controller Max support 53 usb storage devices.

Version-Release number of selected component (if applicable):
# uname -r
3.8.0-0.37.el7.x86_64
# rpm -qa|grep qemu
qemu-kvm-1.3.0-8.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.I added command line to attachment
2.
3.
  
Actual results:
qemu core dump

(gdb) bt
#0  0x00007ffff2afaba5 in raise () from /lib64/libc.so.6
#1  0x00007ffff2afc358 in abort () from /lib64/libc.so.6
#2  0x00007ffff2af3972 in __assert_fail_base () from /lib64/libc.so.6
#3  0x00007ffff2af3a22 in __assert_fail () from /lib64/libc.so.6
#4  0x00005555557d97f5 in vmstate_register_with_alias_id (dev=dev@entry=0x55555b2ca230, instance_id=<optimized out>, instance_id@entry=-1, vmsd=
    0x555555bc99a0 <vmstate_scsi_disk_state>, opaque=opaque@entry=0x55555b2ca230, alias_id=alias_id@entry=-1, required_for_version=required_for_version@entry=0)
    at /usr/src/debug/qemu-1.3.0/savevm.c:1397
#5  0x00005555556aed6d in qdev_init (dev=dev@entry=0x55555b2ca230) at hw/qdev.c:172
#6  0x00005555556b57d3 in scsi_bus_legacy_add_drive (bus=bus@entry=0x55555b2c9530, bdrv=bdrv@entry=0x55555b02c230, unit=unit@entry=0, removable=true, bootindex=-1)
    at hw/scsi-bus.c:228
#7  0x00005555556ce525 in usb_msd_initfn (dev=0x55555b2c7e50) at hw/usb/dev-storage.c:599
#8  0x00005555556c3185 in usb_device_init (dev=0x55555b2c7e50) at hw/usb/bus.c:97
#9  usb_qdev_init (qdev=0x55555b2c7e50) at hw/usb/bus.c:203
#10 0x00005555556aed1f in qdev_init (dev=dev@entry=0x55555b2c7e50) at hw/qdev.c:155
#11 0x00005555556a9d29 in qdev_device_add (opts=0x5555564f5230) at hw/qdev-monitor.c:481
#12 0x000055555576de39 in device_init_func (opts=<optimized out>, opaque=<optimized out>) at vl.c:2052
#13 0x000055555572ae63 in qemu_opts_foreach (list=<optimized out>, func=func@entry=0x55555576de20 <device_init_func>, opaque=opaque@entry=0x0, 
    abort_on_failure=abort_on_failure@entry=1) at qemu-option.c:1106
#14 0x00005555555d21e9 in main (argc=<optimized out>, argv=<optimized out>, envp=<optimized out>) at vl.c:3885


Expected results:
shouldn't core dump, give a correct error message

Additional info:

Comment 1 FuXiangChun 2013-03-11 11:02:47 UTC
Created attachment 708309 [details]
boot guest command line

Comment 3 Gerd Hoffmann 2013-03-20 13:37:47 UTC
Fix planned for qemu 1.5.

Comment 4 Gerd Hoffmann 2013-05-14 14:25:25 UTC

*** This bug has been marked as a duplicate of bug 956598 ***