mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 20:22:46 +00:00
misc: refine the assert of duplicate IO port
The current code judges an empty vm_name as a normal vm_name and assert two endpoints with null name use the same IO port. There was another which check wether the vm_name of endpoint is null, so this patch break the assert if get null vm_name. Tracked-On: #6690 Signed-off-by: Chenli Wei <chenli.wei@linux.intel.com>
This commit is contained in:
parent
4aa871effc
commit
7be26940f7
@ -14,7 +14,7 @@
|
|||||||
</xs:annotation>
|
</xs:annotation>
|
||||||
</xs:assert>
|
</xs:assert>
|
||||||
|
|
||||||
<xs:assert test="every $io_port in /acrn-config//endpoint/io_port satisfies
|
<xs:assert test="every $io_port in /acrn-config//endpoint[vm_name != '']/io_port satisfies
|
||||||
count(//endpoint[./vm_name=$io_port/ancestor::endpoint/vm_name and io_port=$io_port]) = 1">
|
count(//endpoint[./vm_name=$io_port/ancestor::endpoint/vm_name and io_port=$io_port]) = 1">
|
||||||
<xs:annotation acrn:severity="error" acrn:report-on="$io_port">
|
<xs:annotation acrn:severity="error" acrn:report-on="$io_port">
|
||||||
<xs:documentation>VM "{$io_port/ancestor::endpoint/vm_name}" may not duplicate use of port "{$io_port}."</xs:documentation>
|
<xs:documentation>VM "{$io_port/ancestor::endpoint/vm_name}" may not duplicate use of port "{$io_port}."</xs:documentation>
|
||||||
|
Loading…
Reference in New Issue
Block a user