From ff1d0fbfbaec55038ccf888759588fa4e21516f4 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Tue, 13 Mar 2018 19:32:55 +0100 Subject: 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 --- ArmVirtPkg/Library/PlatformBootManagerLib/PlatformBm.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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 -- cgit v1.2.3