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.
</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)) &lt;= 1">
<xs:annotation acrn:severity="error" acrn:report-on="$vm//cpu_affinity">
