misc: add assert to check the missing of CLOS MASK

The current UI there is an issue which have not sync and save the VMs
to RDT element, these issue will cause the missing of num_pclosids and
the HV can't start.

This patch add assert to check the the missing of CLOS MASK.
The UI issue will be fix by another patch.

Tracked-On: #6690
Signed-off-by: Chenli Wei <chenli.wei@linux.intel.com>
This commit is contained in:
Chenli Wei 2022-06-20 11:17:56 +08:00 committed by acrnsi-robot
parent 2efa77c86d
commit d43a141f85
1 changed files with 9 additions and 0 deletions

View File

@ -53,4 +53,13 @@ This error cannot be fixed by adjusting the configuration. Report a `GitHub issu
</xs:annotation>
</xs:assert>
<xs:assert test="every $vm_name in //vm/name satisfies
if (//RDT_ENABLED = 'y')
then count(//POLICY/VM[text() = $vm_name]) > 0
else true()">
<xs:annotation acrn:severity="error" acrn:report-on="/acrn-config/hv/CACHE_REGION">
<xs:documentation>Need config the CLOS MASK for VM '{$vm_name}''.</xs:documentation>
</xs:annotation>
</xs:assert>
</xs:schema>