From f4f828f7627da7da6701d0f39af6c59d42670af8 Mon Sep 17 00:00:00 2001 From: Junjie Mao Date: Tue, 22 Nov 2022 22:52:54 +0800 Subject: [PATCH] config_tools/schema: fix division operator in error messages The division operator in XPATH is `div`, not `/`. Fix it in an error message of the assertions. Tracked-On: #6690 Signed-off-by: Junjie Mao --- misc/config_tools/schema/checks/vm_memory.xsd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/config_tools/schema/checks/vm_memory.xsd b/misc/config_tools/schema/checks/vm_memory.xsd index e45e6c649..509ab9926 100644 --- a/misc/config_tools/schema/checks/vm_memory.xsd +++ b/misc/config_tools/schema/checks/vm_memory.xsd @@ -7,7 +7,7 @@ - The total memory size allocated to all VMs is larger then available host memory ({(sum(/acrn-config//vm[load_order != 'SERVICE_VM']//memory/size) + sum(/acrn-config//vm[load_order != 'SERVICE_VM']//size_hpa))} MB > {sum(//memory/range[not(@id)]/@size) / 1048576} MB). Reduce total allocated User VM memory size. + The total memory size allocated to all VMs is larger then available host memory ({(sum(/acrn-config//vm[load_order != 'SERVICE_VM']//memory/size) + sum(/acrn-config//vm[load_order != 'SERVICE_VM']//size_hpa))} MB > {sum(//memory/range[not(@id)]/@size) div 1048576} MB). Reduce total allocated User VM memory size.