mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-03 14:06:54 +00:00
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> |
||
---|---|---|
.. | ||
crypto | ||
efi.h | ||
errno.h | ||
hash.h | ||
list.h | ||
rtl.h | ||
sprintf.h | ||
types.h | ||
util.h |