mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-03 14:06:54 +00:00
This patch introduces the XML schema `datachecks.xsd` which is the central place to specify and check assumptions on board characteristics and scenario settings. Each assumption is expressed as an XSD assertion with annotation of error severity (e.g. info, warning or error) and detailed descriptions. At compile time, the board and scenario XMLs are combined (by putting the children of the root node together) can checked against the schema. Assertion failures are categorized according to the defined severity. Currently only errors will block compilation by outputing the descriptions of the violated assertions. The objective of this patch is the introduce the framework to document, manage and check assumptions. A better way to present assumption violations to end users (either on the command line or in the configuration editor) is out of the scope of this series and will be considered in the future. Tracked-On: #5922 Signed-off-by: Junjie Mao <junjie.mao@intel.com>
19 lines
495 B
XML
19 lines
495 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/pre_launched_vm_support.xsd" xpointer="xpointer(id('root')/*)" />
|
|
|
|
</xs:complexType>
|
|
</xs:element>
|
|
|
|
</xs:schema>
|