mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-31 03:15:42 +00:00
bootargs_load_addr (GPA) and zero page which locates at one page follows it: - SOS: currently it's fixed at 0x24EFC000. Theoretically, this address may not exist if the system has small memory size. - pre-launched VMs: currently it's at (vm_config->memory.size - 8KB). It doesn't work if the guest has been assigned for more than 4GB memory size, because zero page must be under 4GB. - This patch reserves 8KB for bootargs_load_addr right before kernel_load_addr for either SOS or pre-launched VMs. ramdisk_load_addr (GPA): - pre-launched VMs: currently it doesn't allow ramdisk. - SOS: currently it's assigned at mods[].mm_mod_start. It's a bug because it misses the hpa2gpa() conversion. - This patch puts ramdisk_load_addr right after (kernel_load_addr + kernel_size), which has 2 benefits: - for pre-launched VMs, mods[].mm_mod_start may be out of its GPA range. - it may be better to consolidate everything (bootarg, kernel, ramdisk) in consecutive GPA, other than spread them out in different places. Tracked-On: #2587 Signed-off-by: Zide Chen <zide.chen@intel.com> Reviewed-by: Eddie Dong <eddie.dong@intel.com> Reviewed-by: Victor Sun <victor.sun@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com> |
||
---|---|---|
.. | ||
include | ||
sbl | ||
uefi | ||
acpi.c | ||
dmar_parse.c | ||
reloc.c |