From e83bea08822cbb441a81120f440e4345d07d7a31 Mon Sep 17 00:00:00 2001 From: Kunhui-Li Date: Fri, 29 Jul 2022 00:03:59 +0800 Subject: [PATCH] config_tools: remove invaild hugepage check Currently, on the whl-ipc-i5 platform, we found a warning message when building ACRN with the shared scenario XML file from github. However, this doesn't affect any feature of ACRN according to the QA's test result. So this patch removes this check in order not to confuse users at the first. If necessary, we will add back the check after getting more detail. v1-->v2 degrade the log level to debug. Tracked-On: #7926 Signed-off-by: Kunhui-Li Reviewed-by: Junjie Mao --- misc/config_tools/static_allocators/memory_allocator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/config_tools/static_allocators/memory_allocator.py b/misc/config_tools/static_allocators/memory_allocator.py index eb00f2749..14bbabf7c 100644 --- a/misc/config_tools/static_allocators/memory_allocator.py +++ b/misc/config_tools/static_allocators/memory_allocator.py @@ -172,7 +172,7 @@ def allocate_hugepages(board_etree, scenario_etree, allocation_etree): post_vms_memory = sum(int(i) for i in scenario_etree.xpath("//vm[load_order = 'POST_LAUNCHED_VM']/memory/size/text()")) / 1024 if total_hugepages - post_vms_memory < 0: - logging.warning(f"The sum {post_vms_memory} of memory configured in post launch VMs should not be larger than " \ + logging.debug(f"The sum {post_vms_memory} of memory configured in post launch VMs should not be larger than " \ f"the calculated total hugepages {total_hugepages} of service VMs. Please update the configuration in post launch VMs") allocation_service_vm_node = common.get_node("/acrn-config/vm[load_order = 'SERVICE_VM']", allocation_etree)