HV: init efi info with multiboot2

Initialize efi info of acrn mbi when boot from multiboot2 protocol, with
this patch hypervisor could get host efi info and pass it to Linux zeropage,
then make guest Linux possible to boot with efi environment;

Tracked-On: #4419

Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Victor Sun
2020-02-19 16:12:55 +08:00
committed by wenlingz
parent 69da0243f5
commit da3d181f62
6 changed files with 97 additions and 3 deletions

View File

@@ -63,6 +63,8 @@ info_req_tag_start:
.long MULTIBOOT2_TAG_TYPE_MMAP
.long MULTIBOOT2_TAG_TYPE_MODULE
.long MULTIBOOT2_TAG_TYPE_ACPI_NEW
.long MULTIBOOT2_TAG_TYPE_EFI64
.long MULTIBOOT2_TAG_TYPE_EFI_MMAP
info_req_tag_end:
.align MULTIBOOT2_TAG_ALIGN
@@ -246,3 +248,9 @@ cpu_primary32_pdt_addr:
.quad address + 0x83
address = address + 0x200000
.endr
#ifdef CONFIG_MULTIBOOT2
.global efiloader_sig
efiloader_sig:
.asciz "EL64"
#endif