upon pressing F2 failures in loading the edk2 bios interface app

Host environment

  • Operating system: Windows 10
  • OS/kernel version: 19045.4046
  • Architecture: x86_64
  • QEMU flavor: qemu-system-x86_64
  • QEMU version: QEMU emulator version 8.2.90 (v9.0.0-rc0-42-g54294b23e1)
  • QEMU command line:
    qemu-system-x86_64 -machine type=q35,accel=whpx,kernel-irqchip=off -cpu qemu64 -smp 2,sockets=1,cores=2,maxcpus=2 -m $(10*1024) -audio dsound,model=hda -display sdl,gl=on -vga virtio -device qemu-xhci -device usb-tablet -rtc base=localtime -bios "D:\vstorage\win_m01_qemu_2403_edk2-x86_64.fd" -boot menu=on

Emulated/Virtualized environment

  • Operating system: NA just the uefi tianocore edk2 bios
  • OS/kernel version: NA
  • Architecture: x86_64

Description of problem

Cosmetic, low priority, but maybe easy to fix
Occasional failures to load the edk2 bios interface app
Workaround, retry until success

Steps to reproduce

  1. start qemu
  2. press F2 when qemu guest display window pops up. When it works, it brings up the edk2 bios interface. This bug concerns the case when it does not work

For reasons not clear, sometimes, after pressing F2, and after qemu registered the key-stroke (F2) and responded by changing the window size, the bios interface loading process seems to abruptly stop at the following guest-display-screen with the following message.
BdsDxe: Loading Boot0000 "UiApp" From Fv(7CB8BDC9-F8EB-F434-AAEA-3EE4AF6516A1)/FvFile(462CAA21-7614-4503-836E-8AB6F4662311)
QEMU_3_21_2024_12_52_10_PM

When the bios interface loading process does succeed, it goes to the expected screen:
QEMU_3_21_2024_11_25_00_AM

Additional information

Unsure if this sort of bug should go upstream to https://github.com/tianocore/edk2/issues
Herein notifying @kraxel

Not a measured statistic, but on basis of feeling, I'd qualitatively say 4 out of 5 times it fails to bring up the bios interface. Its a bit frustrating because it feels like one has no control over it and a successful event is left to chance.

This isn't a recent introduction/regression. I've noticed this since 8.0.0, so its been this way maybe longer.

Edited by GK