From: Laszlo Ersek Date: Tue, 13 Mar 2018 18:32:55 +0000 (+0100) Subject: ArmVirtPkg/PlatformBootManagerLib: minimize the set of connected devices X-Git-Tag: edk2-stable201903~2141 X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=commitdiff_plain;h=ff1d0fbfbaec55038ccf888759588fa4e21516f4 ArmVirtPkg/PlatformBootManagerLib: minimize the set of connected devices Prefer ConnectDevicesFromQemu() to EfiBootManagerConnectAll(). Cc: Ard Biesheuvel Cc: Jordan Justen Cc: Shannon Zhao Cc: Xiang Zheng Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek Tested-by: Ard Biesheuvel # ArmVirtQemu Reviewed-by: Ard Biesheuvel Tested-by: Xiang Zheng --- diff --git a/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c b/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c index f9591964d5..36e0eed238 100644 --- a/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c +++ b/ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c @@ -663,15 +663,23 @@ PlatformBootManagerAfterConsole ( VOID ) { + RETURN_STATUS Status; + // // Show the splash screen. // BootLogoEnableLogo (); // - // Connect the rest of the devices. + // Connect the purported boot devices. // - EfiBootManagerConnectAll (); + Status = ConnectDevicesFromQemu (); + if (RETURN_ERROR (Status)) { + // + // Connect the rest of the devices. + // + EfiBootManagerConnectAll (); + } // // Process QEMU's -kernel command line option. Note that the kernel booted