acrn-hypervisor/hypervisor/include/lib
Victor Sun 9dfac7a7a3 HV: init hv_e820 from efi mmap if boot from uefi
Hypervisor use e820_alloc_memory() api to allocate memory for trampoline code
and ept pages, whereas the usable ram in hv_e820 might include efi boot service
region if system boot from uefi environment, this would result in some uefi
service broken in SOS. These boot service region should be filtered from
hv_e820.
This patch will parse the efi memory descriptor entries info from efi memory
map pointer when system boot from uefi environment, and then initialize hv_e820
accordingly, that all efi boot service region would be kept as reserved in
hv_e820.

Please note the original efi memory map could be above 4GB address space,
so the efi memory parsing process must be done after enable_paging().

Tracked-On: #5626

Signed-off-by: Victor Sun <victor.sun@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
2021-06-11 10:06:02 +08:00
..
crypto hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
efi.h HV: init hv_e820 from efi mmap if boot from uefi 2021-06-11 10:06:02 +08:00
errno.h HV: Reset physical core of lapic_pt vm when shutdown 2019-04-22 19:58:20 +08:00
hash.h hv: Add 64 bits hash function 2020-05-20 16:04:16 +08:00
list.h hv: ptirq: refine find_ptirq_entry by hashing 2020-05-20 16:04:16 +08:00
rtl.h HV: enable multiboot module string as kernel bootargs 2020-06-08 13:30:04 +08:00
sprintf.h fix "Casting operation to a pointer" 2018-11-06 13:37:33 +08:00
types.h hv: support xsave in context switch 2019-12-02 09:31:12 +08:00
util.h hv: bugfix in min() and max() MACROs 2021-04-23 09:58:21 +08:00