mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-23 22:18:17 +00:00
misc: add assert to check the RTVM CPU affinity
The current ACRN Configurator have no warning when the user set CPU zero to RTVM. This patch add an assert to check the above. Tracked-On: #6690 Signed-off-by: Chenli Wei <chenli.wei@linux.intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com>
This commit is contained in:
parent
e44b1b84ea
commit
0609250743
@ -39,4 +39,11 @@
|
||||
</xs:annotation>
|
||||
</xs:assert>
|
||||
|
||||
<xs:assert test="every $vm in /acrn-config/vm[vm_type = 'RTVM'] satisfies
|
||||
count($vm//pcpu_id[./text() = '0']) = 0">
|
||||
<xs:annotation acrn:severity="error" acrn:report-on="$vm//cpu_affinity">
|
||||
<xs:documentation>The CPU 0 can't assign to RTVM {$vm/name/text()}.</xs:documentation>
|
||||
</xs:annotation>
|
||||
</xs:assert>
|
||||
|
||||
</xs:schema>
|
||||
|
Loading…
Reference in New Issue
Block a user