VirtualBox

Ignore:
Timestamp:
Jan 19, 2023 9:20:54 AM (2 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
155301
Message:

Devices/EFI: Make EFI produce a VMBootFail event if no guest could be booted, disables the EFI Shell as a default boot option (can still be selected from the boot manager), bugref:7249

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/EFI/Firmware/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c

    r89983 r98131  
    1313#include <Library/Tcg2PhysicalPresenceLib.h>
    1414#include <Library/XenPlatformLib.h>
     15#ifdef VBOX
     16# include <Library/IoLib.h>
     17# include "../../../../DevEFI.h"
     18#endif
    1519
    1620
     
    15411545  // Register UEFI Shell
    15421546  //
     1547#ifndef VBOX
    15431548  PlatformRegisterFvBootOption (
    15441549    &gUefiShellFileGuid, L"EFI Internal Shell", LOAD_OPTION_ACTIVE
    15451550    );
     1551#else
     1552  /*
     1553   * Don't start the shell automatically (can still be selected from the boot manager)
     1554   * so we get into the error path when none of the boot options worked.
     1555   */
     1556  PlatformRegisterFvBootOption (
     1557    &gUefiShellFileGuid, L"EFI Internal Shell", 0
     1558    );
     1559#endif
    15461560
    15471561  RemoveStaleFvFileOptions ();
     
    17101724  UINTN                        Index;
    17111725
     1726#ifdef VBOX
     1727  IoWrite16(EFI_PORT_EVENT, EFI_EVENT_TYPE_BOOT_FAILED);
     1728#endif
     1729
    17121730  //
    17131731  // BootManagerMenu doesn't contain the correct information when return status
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette