hv: EFI can load Hypervisor to address other than COMNFIG_RAM_START

- UEFI: change __emalloc() function to allocate from any available memory
  under 4G
- Define CONFIG_RAM_START to the lowest possible address 1M, making sure
  HV can only be relocated to higher address

Signed-off-by: Zheng Gen <gen.zheng@intel.com>
Signed-off-by: Zide Chen <zide.chen@intel.com>
Reviewed-by: Yin fengwei <fengwei.yin@intel.com>
This commit is contained in:
Zide Chen
2018-06-22 09:02:49 -07:00
committed by lijinxia
parent 84d9da1d6a
commit 6c9e451b41
4 changed files with 37 additions and 39 deletions

View File

@@ -94,7 +94,7 @@ config LOW_RAM_SIZE
config RAM_START
hex "Address of the RAM region assigned to the hypervisor"
default 0x6e000000 if PLATFORM_SBL
default 0x20000000 if PLATFORM_UEFI
default 0x00100000 if PLATFORM_UEFI
config RAM_SIZE
hex "Size of the RAM region assigned to the hypervisor"