summaryrefslogtreecommitdiffstats
path: root/OvmfPkg/Library/PlatformBootManagerLib
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2022-07-19 17:12:48 +0200
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2022-09-06 16:55:33 +0000
commit5eeb088ad64124229b32a5593fada578b935e207 (patch)
treef58e93ffd1eb3120e04e70da64cd66a20497f306 /OvmfPkg/Library/PlatformBootManagerLib
parentdb463e8e9da6f19becb336645dad3718de0743d3 (diff)
downloadedk2-5eeb088ad64124229b32a5593fada578b935e207.tar.gz
edk2-5eeb088ad64124229b32a5593fada578b935e207.tar.bz2
edk2-5eeb088ad64124229b32a5593fada578b935e207.zip
OvmfPkg/QemuBootOrderLib: add StoreQemuBootOrder()
The function reads the boot order from qemu fw_cfg, translates it into device paths and stores them in 'QemuBootOrderNNNN' variables. In case there is no boot ordering configured the function will do nothing. Use case: Allow applications loaded via 'qemu -kernel bootloader.efi' obey the boot order. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'OvmfPkg/Library/PlatformBootManagerLib')
-rw-r--r--OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
index 51016a5548..98f6f07341 100644
--- a/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
+++ b/OvmfPkg/Library/PlatformBootManagerLib/BdsPlatform.c
@@ -1695,6 +1695,11 @@ PlatformBootManagerAfterConsole (
PciAcpiInitialization ();
//
+ // Write qemu bootorder to efi variables
+ //
+ StoreQemuBootOrder ();
+
+ //
// Process QEMU's -kernel command line option
//
TryRunningQemuKernel ();