Bug 2097242

Summary: Guest can not boot up, VNC show info: Guest has not initialized the display (yet)
Product: Red Hat Enterprise Linux 9 Reporter: yalzhang <yalzhang>
Component: edk2Assignee: Gerd Hoffmann <kraxel>
Status: CLOSED NEXTRELEASE QA Contact: Xueqiang Wei <xuwei>
Severity: low Docs Contact:
Priority: low    
Version: 9.1CC: berrange, coli, jinzhao, jiyin, juzhang, kraxel, meili, mst, pbonzini, virt-maint, yiwei
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: edk2-20230524-2.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-07-20 10:58:17 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
The qemu cmd line none

Description yalzhang@redhat.com 2022-06-15 09:38:27 UTC
Created attachment 1890196 [details]
The qemu cmd line

Description of problem:
Guest can not boot up, VNC show info: Guest has not initialized the display (yet)

Version-Release number of selected component (if applicable):
libvirt-8.4.0-1.el9.x86_64
qemu-kvm-7.0.0-6.el9.x86_64
edk2-ovmf-20220526git16779ede2d36-1.el9.noarch

How reproducible:
100%

Steps to Reproduce:
1. Set a Q35+uefi guest with
1) 1 pcie-expander-bus, and 1 pcie-root-port connected to this expander bus;
2) guest has 13 pcie controller or more, for example:
<os>
    <type arch='x86_64' machine='pc-q35-rhel9.0.0'>hvm</type>
    <loader readonly='yes' secure='yes' type='pflash'>/usr/share/edk2/ovmf/OVMF_CODE.secboot.fd</loader>
  </os>
......
<controller type='pci' index='12' model='pcie-expander-bus'>
      <model name='pxb-pcie'/>
      <target busNr='254'/>
      <alias name='pci.12'/>
    </controller>
    <controller type='pci' index='13' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='13' port='0x0'/>
      <alias name='pci.13'/>
      <address type='pci' domain='0x0000' bus='0x0c' slot='0x00' function='0x0'/>
    </controller>

In this configuration, the guest has 13 pcie controllers in total. In which there is a pcie-expander-bus, and one pcie-root-port connected to it. 

2. Try to start the vm, it can not boot successfully, just show: 
Guest has not initialized the display (yet)

Actual results:
Guest can not boot successfully with msg "Guest has not initialized the display (yet)"

Expected results:
Guest boot up successfully

Additional info:
No such issue for guest with seabios

Comment 6 John Ferlan 2023-05-16 13:57:09 UTC
Gerd - forwarding along to edk2 per mst's comment.

Comment 7 Gerd Hoffmann 2023-05-17 08:36:11 UTC
Can you attach the edk2 firmware log to the bug please?

Comment 9 Gerd Hoffmann 2023-05-24 07:19:55 UTC
Does the scratch build linked here:
https://bugzilla.redhat.com/show_bug.cgi?id=2174749#c18
make any difference?

Comment 10 Xueqiang Wei 2023-05-29 08:32:42 UTC
(In reply to Gerd Hoffmann from comment #9)
> Does the scratch build linked here:
> https://bugzilla.redhat.com/show_bug.cgi?id=2174749#c18
> make any difference?

According to Comment 2, tested with the scratch build, not hit this issue. The guest started successfully.

Versions:
kernel-5.14.0-316.el9.x86_64
qemu-kvm-8.0.0-4.el9
edk2-ovmf-20230301gitf80f052277c8-3.el9.bz2174749.20230515.1346.noarch


By the way, tested with the latest edk2 - edk2-ovmf-20230301gitf80f052277c8-5.el9.noarch.rpm, hit this issue.

Comment 11 Gerd Hoffmann 2023-07-11 08:19:11 UTC
edk2-20230524-2.el9 is available now, please re-test.

Comment 12 Xueqiang Wei 2023-07-13 08:37:05 UTC
(In reply to Gerd Hoffmann from comment #11)
> edk2-20230524-2.el9 is available now, please re-test.

According to Comment 2, reproduced the bug with edk2-ovmf-20220526git16779ede2d36-1.el9. And tested it with edk2-20230524-2.el9, not hit this issue. The guest started successfully. I think we can close it as CURRENTRELEASE. Thanks.

Versions:
kernel-5.14.0-331.el9.x86_64
qemu-kvm-8.0.0-6.el9
edk2-ovmf-20230524-2.el9.noarch

Comment 13 Gerd Hoffmann 2023-07-20 10:58:17 UTC
> And tested it with
> edk2-20230524-2.el9, not hit this issue. The guest started successfully. I
> think we can close it as CURRENTRELEASE. Thanks.

This version goes to 9.3 which is NEXT not CURRENT, but yes, we can close it.