mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-28 08:16:54 +00:00
misc: refine the calculate logic of hv_ram_size
The legacy logic use double IVSHMEM_SIZE to calculate the HV RAM, it can't match the current code. This patch use the IVSHMEM_SIZE size only. Tracked-On: #6690 Signed-off-by: Chenli Wei <chenli.wei@intel.com>
This commit is contained in:
parent
4fd7a4d9cf
commit
174917726d
@ -27,7 +27,7 @@ def fn(board_etree, scenario_etree, allocation_etree):
|
||||
total_shm_size += int(ram_size) * 0x100000
|
||||
except Exception as e:
|
||||
print(e)
|
||||
hv_ram_size += 2 * max(total_shm_size, 0x200000)
|
||||
hv_ram_size += max(total_shm_size, 0x200000)
|
||||
assert(hv_ram_size <= HV_RAM_SIZE_MAX)
|
||||
|
||||
# We recommend to put hv ram start address high than 0x400000 to
|
||||
|
Loading…
Reference in New Issue
Block a user