mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 20:22:46 +00:00
config tool: add schema check for cpu_affinity
cpu_affinity is required field for non-service vm, add the check in case user misconfig it. Tracked-On: #7405 Signed-off-by: hangliu1 <hang1.liu@linux.intel.com>
This commit is contained in:
parent
513eafd6f0
commit
fd76e342ef
@ -25,6 +25,13 @@
|
||||
</xs:annotation>
|
||||
</xs:assert>
|
||||
|
||||
<xs:assert test="every $vm in /acrn-config/vm[load_order != 'SERVICE_VM'] satisfies
|
||||
count(/acrn-config/vm/cpu_affinity/pcpu/pcpu_id) > 0">
|
||||
<xs:annotation acrn:severity="error" acrn:report-on="//vm//cpu_affinity/pcpu">
|
||||
<xs:documentation>The physical CPUs must be allocated to the VM "{$vm/name}".</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:assert>
|
||||
|
||||
<xs:assert test="every $vm in /acrn-config/vm[load_order != 'SERVICE_VM'] satisfies
|
||||
count(distinct-values(processors//thread[cpu_id = $vm//cpu_affinity//pcpu_id]/core_type)) <= 1">
|
||||
<xs:annotation acrn:severity="error" acrn:report-on="$vm//cpu_affinity">
|
||||
|
Loading…
Reference in New Issue
Block a user