Bug 1005747

Summary: fail to boot rhel7 guest with >126(21 ahci controller) ahci disks
Product: Red Hat Enterprise Linux 7 Reporter: FuXiangChun <xfu>
Component: seabiosAssignee: Gerd Hoffmann <kraxel>
Status: CLOSED CURRENTRELEASE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: acathrow, hhuang, juzhang, michen, sluo, virt-maint, xuhan
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: seabios-1.7.2.2-3.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-06-13 11:34: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
ahci-cli
none
guest screenshot
none
screen shot of verification
none
boot menu screen shot
none
command line none

Description FuXiangChun 2013-09-09 10:31:03 UTC
Description of problem:
Boot guest with 126(21 ahci controller) ahci disks, guest works well.  Boot guest with 132 ahci disks(22 ahci controller). fail to boot guest. 

Currently, In theory, qemu-kvm should support Max 180 ahci disks. 
 30* 6(Max free ahci controller number * per ahci controller support Max disk number) 
 

Version-Release number of selected component (if applicable):
# uname -r
3.10.0-15.el7.x86_64
qemu-kvm-1.5.3-2.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.I attached qemu-kvm command line to attachement.
2.
3.

Actual results:
# sh ahci-multi-disks-cli.sh 
QEMU 1.5.3 monitor - type 'help' for more information
(qemu) KVM internal error. Suberror: 1
emulation failure
EAX=0000ffff EBX=00006a00 ECX=0000f9d7 EDX=0000c5d1
ESI=dff27a47 EDI=00000020 EBP=00000006 ESP=000069c6
EIP=000a0000 EFL=00000017 [----APC] CPL=0 II=0 A20=1 SMM=0 HLT=0
ES =0000 00000000 ffffffff 00809300
CS =0000 00000000 ffffffff 00809b00
SS =0000 00000000 ffffffff 00809300
DS =0000 00000000 ffffffff 00809300
FS =0000 00000000 ffffffff 00809300
GS =0000 00000000 ffffffff 00809300
LDT=0000 00000000 0000ffff 00008200
TR =0000 00000000 0000ffff 00008b00
GDT=     000fd808 00000037
IDT=     00000000 000003ff
CR0=00000010 CR2=00000000 CR3=00000000 CR4=00000000
DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000 
DR6=00000000ffff0ff0 DR7=0000000000000400
EFER=0000000000000000
Code=00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 <ff> ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

I attached guest screenshot to attachement

Expected results:
all disks are loaded successfully

Additional info:

Comment 1 FuXiangChun 2013-09-09 10:34:17 UTC
Created attachment 795573 [details]
ahci-cli

Comment 2 FuXiangChun 2013-09-09 10:34:58 UTC
Created attachment 795574 [details]
guest screenshot

Comment 4 Gerd Hoffmann 2013-09-09 12:19:36 UTC
Probably seabios runs out of memory, then triggers some bug in some error path and goes crazy ...

Comment 6 Gerd Hoffmann 2013-09-17 09:43:09 UTC
patch posted.

Comment 7 Miroslav Rezanina 2013-09-24 09:17:36 UTC
Fix included in seabios-1.7.2.2-3.el7

Comment 9 Xu Han 2013-11-07 02:30:20 UTC
Reproduce this bug with components:
seabios-1.7.2.2-2.el7

Steps:
1. boot guest with 132 ahci disks.

Results:
after step1, get same result as Description.


Verify this bug with component:
seabios-1.7.2.2-4.el7

Same steps as above.

Results:
after step1, seabios could load into boot menu, but fail to boot from specified device.

Base on these test results above, this bug has been fixed, however, still hit bug 947364.

Comment 10 Xu Han 2013-11-07 02:32:10 UTC
Created attachment 820842 [details]
screen shot of verification

Comment 11 Xu Han 2013-11-07 02:34:36 UTC
Created attachment 820846 [details]
boot menu screen shot

Comment 12 Xu Han 2013-11-07 02:41:39 UTC
Created attachment 820848 [details]
command line

Comment 13 Xu Han 2013-11-21 10:08:55 UTC
According to the issue in comment 9, filed bug 1032955.

Comment 15 Ludek Smid 2014-06-13 11:34:25 UTC
This request was resolved in Red Hat Enterprise Linux 7.0.

Contact your manager or support representative in case you have further questions about the request.