From a34a886962561f6d8550b2a1bb193798ca456431 Mon Sep 17 00:00:00 2001 From: Laszlo Ersek Date: Thu, 15 Mar 2018 12:49:26 +0100 Subject: [PATCH] OvmfPkg/PlatformBootManagerLib: process "-kernel" before boot devices This improves the UEFI boot time for VMs that have "-kernel", many disks or NICs, and no "bootindex" properties. (Unlike in ArmVirt commit 23d04b58e27b, in OvmfPkg commit 52fba28994e9 we introduced TryRunningQemuKernel() right from the start *after* BdsLibConnectAll(). Therefore, unlike in patch 'ArmVirtPkg/PlatformBootManagerLib: return to "-kernel before boot devices"', we adopt the logic as new in this patch.) Cc: Ard Biesheuvel Cc: Jordan Justen Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Laszlo Ersek Reviewed-by: Ard Biesheuvel Tested-by: Gabriel Somlo --- OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c index b624b8f225..862fa6ebb4 100644 --- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c +++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c @@ -1449,16 +1449,16 @@ PlatformBootManagerAfterConsole ( // PciAcpiInitialization (); - // - // Perform some platform specific connect sequence - // - PlatformBdsConnectSequence (); - // // Process QEMU's -kernel command line option // TryRunningQemuKernel (); + // + // Perform some platform specific connect sequence + // + PlatformBdsConnectSequence (); + EfiBootManagerRefreshAllBootOption (); //