]> git.proxmox.com Git - mirror_edk2.git/commit - OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c
OvmfPkg: get boot order from QEMU
authorjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 27 Aug 2012 23:28:30 +0000 (23:28 +0000)
committerjljusten <jljusten@6f19259b-4bc3-4df7-8a09-765794883524>
Mon, 27 Aug 2012 23:28:30 +0000 (23:28 +0000)
commit2cd086a675535b6fc4cb54a75d10ca6f26a2da9e
tree69ef39c3dfc5ae6ab0189e3efdee60095764f9f5
parent67fe5bed945d89370f8c054b670c9575749f7a59
OvmfPkg: get boot order from QEMU

Set the boot order based on configuration retrieved from QEMU.

Attempt to retrieve the "bootorder" fw_cfg file from QEMU. Translate the
OpenFirmware device paths therein to UEFI device path fragments. Match the
translated fragments against the enumerated BootOptionList, and rewrite
the BootOrder NvVar so that it corresponds to the order described in
fw_cfg.

The user is expected to configure working boot options first.

Tested via virt-manager's boot order widget.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@13683 6f19259b-4bc3-4df7-8a09-765794883524
OvmfPkg/Library/PlatformBdsLib/BdsPlatform.c
OvmfPkg/Library/PlatformBdsLib/PlatformBdsLib.inf
OvmfPkg/Library/PlatformBdsLib/QemuBootOrder.c [new file with mode: 0644]
OvmfPkg/Library/PlatformBdsLib/QemuBootOrder.h [new file with mode: 0644]