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 919331

Summary: windows guest Max support 172 usb2.0 devices(should support 174), Two usb devices show operation failed in 'Device Manager'
Product: Red Hat Enterprise Linux 6 Reporter: FuXiangChun <xfu>
Component: qemu-kvmAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: low Docs Contact:
Priority: low    
Version: 6.5CC: acathrow, bsarathy, juzhang, michen, mkenneth, qzhang, rhod, virt-bugs, virt-maint, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Windows   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-07-25 09:37:49 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 comman line
none
device manager screenshot in windows guest none

Description FuXiangChun 2013-03-08 07:09:15 UTC
Description of problem:
Test win2012 and win8 guest in rhel6.4 host. Boot guest with 29 ehci controller and each controller attach 6 usb-storage devices. In theory, Should be 174 usb devices are assigned to guest. In fact, only 172 devices are found and work well in 'Disk Management'. other two show failure in 'Device Manager'. I attached a snapshot for 'Device Manager'

Notes: rhel6.4 guest can recolonize all usb devices(174) and work well.  

Version-Release number of selected component (if applicable):
# uname -r
2.6.32-356.el6.x86_6
# rpm -qa|grep qemu
qemu-kvm-0.12.1.2-2.358.el6_4.test.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Boot windows2012 and win8 guest with 29 usb ehci controller.
  Added command line to attachment

2.check 'device manager'

3.check 'Disk management'
  
Actual results:
only 172 usb devices are available

Expected results:
174 usb devices are available

Additional info:
only test win2012 and win8 guest. don't test other windows guest.

Comment 1 FuXiangChun 2013-03-08 07:14:01 UTC
Created attachment 706932 [details]
boot guest comman line

Comment 2 FuXiangChun 2013-03-08 07:16:08 UTC
Created attachment 706933 [details]
device manager screenshot in windows guest

Comment 3 FuXiangChun 2013-03-11 11:38:05 UTC
Tested several scenarios to compare cpu and memory usage for rhel7.0 guest 

1.host cpu usage(before booting guest)
# sar 2 5
Linux 2.6.32-356.el6.x86_64 (dhcp-11-229.nay.redhat.com) 	03/10/2013 	_x86_64_	(8 CPU)

03:09:21 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle
03:09:23 PM     all      0.00      0.00      0.06      0.00      0.00     99.94
03:09:25 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
03:09:27 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
03:09:29 PM     all      0.00      0.00      0.06      0.00      0.00     99.94
03:09:31 PM     all      0.06      0.00      0.00      0.00      0.00     99.94
Average:        all      0.01      0.00      0.03      0.00      0.00     99.96
1.1 memory usage(before booting guest)
# free -m
             total       used       free     shared    buffers     cached
Mem:          7828        261       7567          0          9         43
-/+ buffers/cache:        208       7619
Swap:         7967          0       7967

1.2 host cpu usage(after booting guest)
# sar 2 10
Linux 2.6.32-356.el6.x86_64 (dhcp-11-229.nay.redhat.com) 	03/10/2013 	_x86_64_	(8 CPU)

03:15:16 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle
03:15:18 PM     all      2.09      0.00      5.13      0.00      0.00     92.78
03:15:20 PM     all      1.77      0.00      5.56      0.00      0.00     92.67
03:15:22 PM     all      1.83      0.00      5.62      0.13      0.00     92.43
03:15:24 PM     all      1.89      0.00      5.55      0.00      0.00     92.56
03:15:26 PM     all      1.71      0.00      5.44      0.00      0.00     92.85
03:15:28 PM     all      1.71      0.00      5.37      0.00      0.00     92.92
03:15:30 PM     all      1.89      0.00      5.80      0.00      0.00     92.31
03:15:32 PM     all      1.96      0.00      4.80      0.00      0.00     93.24
03:15:34 PM     all      1.90      0.00      5.26      0.00      0.00     92.83
03:15:36 PM     all      1.97      0.00      5.26      0.19      0.00     92.58
Average:        all      1.87      0.00      5.38      0.03      0.00     92.72

1.3 host memory usage(after booting guest)
# free -m
             total       used       free     shared    buffers     cached
Mem:          7828       1163       6665          0          8         42
-/+ buffers/cache:       1112       6716
Swap:         7967          0       7967


2.guest cpu usage(without usb devices)
# sar 2 10
Linux 3.8.0-0.38.el7.x86_64 (dhcp-11-214.nay.redhat.com) 	03/11/2013 	_x86_64_	(2 CPU)

03:24:23 PM     CPU     %user     %nice   %system   %iowait    %steal     %idle
03:24:25 PM     all      0.00      0.00      0.25      0.00      0.00     99.75
03:24:27 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
03:24:29 PM     all      0.00      0.00      0.25      0.00      0.00     99.75
03:24:31 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
03:24:33 PM     all      0.25      0.00      0.00      0.00      0.00     99.75
03:24:35 PM     all      0.00      0.00      0.25      0.00      0.00     99.75
03:24:37 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
03:24:39 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
03:24:41 PM     all      0.00      0.00      0.50      0.00      0.00     99.50
03:24:43 PM     all      0.00      0.00      0.00      0.00      0.00    100.00
Average:        all      0.03      0.00      0.13      0.00      0.00     99.85

2.1 guest memory usage(without usb devices)
# free -m
             total       used       free     shared    buffers     cached
Mem:          1873        494       1379          0          0        195
-/+ buffers/cache:        297       1575
Swap:         4031          0       4031

2.2 guest cpu usage(with usb devices)
sar 2 10
Linux 2.6.32-353.el6.x86_64 (localhost.localdomain) 	03/10/2013 	_x86_64_	(2 CPU)

03:16:06 AM     CPU     %user     %nice   %system   %iowait    %steal     %idle
03:16:08 AM     all      0.52      0.00      4.19      0.00      0.26     95.03
03:16:10 AM     all      0.27      0.00      4.27      0.00      0.00     95.47
03:16:12 AM     all      0.52      0.00      4.96      0.78      0.26     93.47
03:16:14 AM     all      0.26      0.00      3.97      0.00      0.26     95.50
03:16:16 AM     all      0.27      0.00      6.40      0.00      2.67     90.67
03:16:18 AM     all      0.27      0.00      4.24      0.53      0.27     94.69
03:16:20 AM     all      0.27      0.00      5.07      0.00      0.53     94.13
03:16:22 AM     all      0.53      0.00      5.04      0.00      0.00     94.43
03:16:24 AM     all      0.26      0.00      5.00      0.79      0.26     93.68
03:16:26 AM     all      0.52      0.00      6.27      0.00      0.26     92.95
Average:        all      0.37      0.00      4.94      0.21      0.48     94.00

2.3 guest memory usage(with usb devices)
# free -m
             total       used       free     shared    buffers     cached
Mem:          3831       539        3292         0          21         175
-/+ buffers/cache:       342        3489
Swap:         4031         0        4031

Comment 4 Ronen Hod 2013-05-26 17:27:25 UTC
FuXiangChun, Gerd,
It looks like a duplicate of bug 882050. What do you think?

Comment 5 FuXiangChun 2013-05-27 10:07:39 UTC
(In reply to Ronen Hod from comment #4)
> FuXiangChun, Gerd,
> It looks like a duplicate of bug 882050. What do you think?

It looks like they are the same issue.  only usb-storage devices number and guest are different.

Comment 6 Ronen Hod 2013-07-25 09:37:49 UTC
Closing.
Unlikely to be fixed in RHEL6.
Please test with RHEL7, and file a new BZ

Comment 7 FuXiangChun 2013-07-26 09:01:35 UTC
Re-tested this issue in RHEL7.0 host.  Don't hit this issue. so needn't open a new bug in RHEL7.