mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-30 10:55:27 +00:00
Now we have transitioned to use XML schema to record all data validation rules against board and scenario XMLs. While most checks originally in the Python scripts are about the syntax of the XML files and thus naturally covered by the XML schemas, there are still a few that conduct cross-check on data consistency. This patch migrates those checks into XML schema as assertions. Tracked-On: #6690 Signed-off-by: Junjie Mao <junjie.mao@intel.com>
21 lines
661 B
XML
21 lines
661 B
XML
<?xml version="1.0"?>
|
|
<xs:schema
|
|
xmlns:xi="http://www.w3.org/2003/XInclude"
|
|
xmlns:xs="http://www.w3.org/2001/XMLSchema">
|
|
|
|
<xs:element name="acrn-config">
|
|
<xs:complexType>
|
|
<xs:sequence>
|
|
<xs:any processContents="skip" minOccurs="0" maxOccurs="unbounded"/>
|
|
</xs:sequence>
|
|
<xs:anyAttribute processContents="skip"/>
|
|
|
|
<xi:include href="checks/cpu_assignment.xsd" xpointer="xpointer(id('root')/*)" />
|
|
<xi:include href="checks/vm_types.xsd" xpointer="xpointer(id('root')/*)" />
|
|
<xi:include href="checks/passthrough_devices.xsd" xpointer="xpointer(id('root')/*)" />
|
|
|
|
</xs:complexType>
|
|
</xs:element>
|
|
|
|
</xs:schema>
|