mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-05 07:35:31 +00:00
In init_paging(), when modify page table, it does a round up to 2M on the starting address of HV memory. If the address is not 2M aligned, memory overwrite occurs, or memory attribute(cache, u/s) may be not right. Besides, trusty memory (uos_sworld_memory) in .bss section is 2M aligned during compiling, after enabling HV memroy 2M alignment, when relocation is enabled, EFI stub or other loaders just needs to find a 2M-aligned starting addr for HV memory. Tracked-On: #2349 Signed-off-by: Chaohong guo <chaohong.guo@intel.com> Reviewed-by: Zide Chen <zide.chen@intel.com>