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>
This commit is contained in:
Gerd Hoffmann
2022-07-19 17:12:48 +02:00
committed by mergify[bot]
parent db463e8e9d
commit 5eeb088ad6
5 changed files with 143 additions and 0 deletions

View File

@@ -1694,6 +1694,11 @@ PlatformBootManagerAfterConsole (
//
PciAcpiInitialization ();
//
// Write qemu bootorder to efi variables
//
StoreQemuBootOrder ();
//
// Process QEMU's -kernel command line option
//