acrn-hypervisor/misc/efi-stub
Yifan Liu 4252bc247d misc: efi-stub: Set MOR bit before jumping to hypervisor
This patch sets the MemoryOverwriteRequestControl (MORCtrl for short)
EFI variable before jumping to hypervisor.

Setting variable MemoryOverwriteRequestControlLock (MORCtrlLock for
short) can also be enabled by manually adding -DMORCTRL_LOCK_ENABLED to
CFLAGS.

Setting MORCtrl indicates to the platform firmware that memory be
cleared upon system reset. Setting MORCtrlLock for the first time will
render both MORCtrl and MORCtrlLock to read-only, until next reset.

Tracked-On: #6241
Signed-off-by: Yifan Liu <yifan1.liu@intel.com>
2021-06-24 14:42:56 +08:00
..
Makefile misc: efi-stub: Add barebone container as an implementation of HV_LOADER 2021-06-24 14:42:56 +08:00
boot.c misc: efi-stub: Set MOR bit before jumping to hypervisor 2021-06-24 14:42:56 +08:00
boot.h misc: efi-stub: Set MOR bit before jumping to hypervisor 2021-06-24 14:42:56 +08:00
container.c misc: efi-stub: Implement modules loading in container 2021-06-24 14:42:56 +08:00
container.h misc: efi-stub: Barebone efi-stub for secure boot 2021-06-24 14:42:56 +08:00
efilinux.h misc: efi-stub: Barebone efi-stub for secure boot 2021-06-24 14:42:56 +08:00
elf32.c misc: efi-stub: Add helper functions to parse/load ELF32 image 2021-06-24 14:42:56 +08:00
elf32.h misc: efi-stub: Add helper functions to parse/load ELF32 image 2021-06-24 14:42:56 +08:00
malloc.c misc: efi-stub: Barebone efi-stub for secure boot 2021-06-24 14:42:56 +08:00
multiboot.c misc: efi-stub: Add helper functions to search/parse multiboot1/2 headers 2021-06-24 14:42:56 +08:00
multiboot.h misc: efi-stub: Add helper functions to search/parse multiboot1/2 headers 2021-06-24 14:42:56 +08:00
pe.c misc: efi-stub: Barebone efi-stub for secure boot 2021-06-24 14:42:56 +08:00
stdlib.h misc: efi-stub: Barebone efi-stub for secure boot 2021-06-24 14:42:56 +08:00