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 706797 - Only can find 7 virtio disks in boot menu
Summary: Only can find 7 virtio disks in boot menu
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Gleb Natapov
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-23 03:33 UTC by Mike Cao
Modified: 2013-12-09 00:54 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-10-02 14:54:31 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
CommandLine (4.18 KB, text/plain)
2011-05-23 04:52 UTC, Mike Cao
no flags Details
Screendump (14.57 KB, image/png)
2011-05-23 04:52 UTC, Mike Cao
no flags Details

Description Mike Cao 2011-05-23 03:33:27 UTC
Description of problem:
start a guest with 26 virtio disks and with -boot menu=on ,after VM start press F12, I found there are only 7 virtio disks lists in boot menu

Version-Release number of selected component (if applicable):
# rpm -q qemu-kvm
qemu-kvm-0.12.1.2-2.160.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Start a guest with 26 virtio disks and with -boot menu=on (CLI will attached)
2.after guest start press F12

Actual results:
only can find 7 virtio disks lists in boot menu (referring to screendump)

Expected results:
all the virtio disks should list in boot menu

Additional info:

Comment 1 Mike Cao 2011-05-23 04:52:05 UTC
Created attachment 500325 [details]
CommandLine

Comment 2 Mike Cao 2011-05-23 04:52:41 UTC
Created attachment 500326 [details]
Screendump

Comment 5 Gleb Natapov 2011-06-09 11:38:13 UTC
Bios environment has limited resources and each virtio queue take enormous amount of memory (at least 5404 byte for each queue). Bios fails to initialize more then 7 virtio disks because there is no enough memory for all of them.

Bios always has only one request in flight to virtio block, so virtio queue shouldn't be so big (1 element should be qnough, we have 128 now), but unfortunately, in current virtio implementation host device decides what virtio queue length should be and a guest has no way to negotiate smaller queue size. The proper fix would be to have queue size negotiable between a host and a guest.

Another fix would be to have only one vq for all virtio devices and reinitialize it on each disk access. This is hackish and may slow down BIOS access to virtio disk though.

As a temporary solution we can also enlarge amount of memory available to BIOS, but then by specifying more virtio disks it will be possible to overflow that too.

So the question is do we really need to support such big number of virtio disks?

Comment 6 Dor Laor 2011-10-02 14:54:31 UTC
I think Gleb is right and it is not requirement.


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