acrn-config: make HV_RAM_SIZE include IVSHMEM_SHM_SIZE

Because ivshmem memory uses hv memory, if the ivshmem feature is
enabled, HV_RAM_SIZE will include IVSHMEM_SHM_SIZE.

Tracked-On: #4853

Signed-off-by: Shuang Zheng <shuang.zheng@intel.com>
Acked-by: Victor Sun <victor.sun@intel.com>
This commit is contained in:
Shuang Zheng
2020-08-27 16:17:29 +08:00
committed by wenlingz
parent 07ed6841f5
commit 58a71b67ab
2 changed files with 32 additions and 3 deletions

View File

@@ -763,10 +763,10 @@ def share_mem_check(shmem_regions, raw_shmem_regions, vm_type_info, prime_item,
except:
ERR_LIST[key] = "The size of share Memory region should be decimal or hexadecimal."
return
if int_size < 0x200000 or int_size > 0x40000000:
ERR_LIST[key] = "The size of share Memory region should be in [2M, 1G]."
if int_size < 0x200000 or int_size >= 0x40000000:
ERR_LIST[key] = "The size of share Memory region should be in [2M, 1G)."
return
if not math.log(int_size, 2).is_integer():
if not ((int_size & (int_size-1) == 0) and int_size != 0):
ERR_LIST[key] = "The size of share Memory region should be a power of 2."
return