From 40225337d214beb0e24037da82a36ab33e819161 Mon Sep 17 00:00:00 2001 From: Junjie Mao Date: Wed, 22 Jun 2022 11:51:59 +0800 Subject: [PATCH] config-tools: fix assertions against scenario XML This patch fixes the following issues in the existing scenario schema assertions: 1. The assertion that ensures the existence of pCPU affinity in all pre- and post-launched VMs does not count the pCPU settings under a VM properly. 2. The assertion that ensures the presence of CAT settings of a defined VM is no longer needed as it was originally designed to capture configurator issues. Tracked-On: #6690 Signed-off-by: Junjie Mao --- misc/config_tools/schema/checks/cpu_assignment.xsd | 4 ++-- misc/config_tools/schema/checks/rdt_support.xsd | 9 --------- 2 files changed, 2 insertions(+), 11 deletions(-) diff --git a/misc/config_tools/schema/checks/cpu_assignment.xsd b/misc/config_tools/schema/checks/cpu_assignment.xsd index 9a8f28b24..f989f7035 100644 --- a/misc/config_tools/schema/checks/cpu_assignment.xsd +++ b/misc/config_tools/schema/checks/cpu_assignment.xsd @@ -26,8 +26,8 @@ - + count($vm/cpu_affinity/pcpu[pcpu_id != '']) > 0"> + Assign at least one physical CPU affinity (pCPU ID) for VM "{$vm/name}". diff --git a/misc/config_tools/schema/checks/rdt_support.xsd b/misc/config_tools/schema/checks/rdt_support.xsd index e844800d9..93ba3f91f 100644 --- a/misc/config_tools/schema/checks/rdt_support.xsd +++ b/misc/config_tools/schema/checks/rdt_support.xsd @@ -53,13 +53,4 @@ This error cannot be fixed by adjusting the configuration. Report a `GitHub issu - - - Need config the CLOS MASK for VM '{$vm_name}''. - - -