mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-21 13:08:42 +00:00
acrn-config: Limit check on Pre-Launched VM RAM size
size and size_hpa2 can be greater than 2GB for Pre-Launched VMs. Tracked-On: #4565 Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
This commit is contained in:
parent
aa6bb9e249
commit
8e7b80fcb2
@ -448,11 +448,8 @@ def mem_size_check(id_hpa_size_dic, prime_item, item):
|
|||||||
if hpa_sz_strip_ul not in common.START_HPA_SIZE_LIST and hpa_sz_strip_u not in \
|
if hpa_sz_strip_ul not in common.START_HPA_SIZE_LIST and hpa_sz_strip_u not in \
|
||||||
common.START_HPA_SIZE_LIST:
|
common.START_HPA_SIZE_LIST:
|
||||||
key = "vm:id={},{},{}".format(id_key, prime_item, item)
|
key = "vm:id={},{},{}".format(id_key, prime_item, item)
|
||||||
mem_max = 2 * 1024 * 1024 * 1024
|
|
||||||
if '0x' not in hpa_size and '0X' not in hpa_size:
|
if '0x' not in hpa_size and '0X' not in hpa_size:
|
||||||
ERR_LIST[key] = "Mem size should be Hex format"
|
ERR_LIST[key] = "Mem size should be Hex format"
|
||||||
elif int(hpa_sz_strip_ul, 16) > mem_max or int(hpa_sz_strip_u, 16) > mem_max:
|
|
||||||
ERR_LIST[key] = "Mem size should less than 2GB"
|
|
||||||
|
|
||||||
|
|
||||||
def os_kern_name_check(id_kern_name_dic, prime_item, item):
|
def os_kern_name_check(id_kern_name_dic, prime_item, item):
|
||||||
|
Loading…
Reference in New Issue
Block a user