2014-06-25 19:24:53 +08:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!-- A Relax NG schema for the libvirt domain capabilities XML format -->
|
|
|
|
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
|
|
|
|
<include href='basictypes.rng'/>
|
|
|
|
<start>
|
|
|
|
<ref name='domainCapabilities'/>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
|
|
|
|
<define name='domainCapabilities'>
|
|
|
|
<element name='domainCapabilities'>
|
|
|
|
<interleave>
|
|
|
|
<element name='path'>
|
|
|
|
<ref name="absFilePath"/>
|
|
|
|
</element>
|
|
|
|
<element name='domain'>
|
|
|
|
<text/>
|
|
|
|
</element>
|
|
|
|
<element name='machine'>
|
|
|
|
<text/>
|
|
|
|
</element>
|
|
|
|
<element name='arch'>
|
|
|
|
<text/>
|
|
|
|
</element>
|
|
|
|
<optional>
|
|
|
|
<ref name='vcpu'/>
|
|
|
|
</optional>
|
2014-09-16 20:47:47 +08:00
|
|
|
<optional>
|
|
|
|
<ref name='os'/>
|
|
|
|
</optional>
|
2014-06-25 19:24:53 +08:00
|
|
|
<optional>
|
|
|
|
<ref name='devices'/>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='vcpu'>
|
|
|
|
<element name='vcpu'>
|
|
|
|
<attribute name='max'>
|
|
|
|
<ref name='unsignedInt'/>
|
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2014-09-16 20:47:47 +08:00
|
|
|
<define name='loader'>
|
|
|
|
<element name='loader'>
|
|
|
|
<ref name='supported'/>
|
2014-09-17 07:52:54 +08:00
|
|
|
<optional>
|
|
|
|
<ref name='value'/>
|
|
|
|
</optional>
|
2014-09-16 20:47:47 +08:00
|
|
|
<ref name='enum'/>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='os'>
|
|
|
|
<element name='os'>
|
|
|
|
<interleave>
|
|
|
|
<ref name='supported'/>
|
|
|
|
<optional>
|
|
|
|
<ref name='loader'/>
|
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2014-06-25 19:24:53 +08:00
|
|
|
<define name='devices'>
|
|
|
|
<element name='devices'>
|
|
|
|
<interleave>
|
|
|
|
<ref name='disk'/>
|
|
|
|
<ref name='hostdev'/>
|
|
|
|
</interleave>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='disk'>
|
|
|
|
<element name='disk'>
|
|
|
|
<ref name='supported'/>
|
|
|
|
<ref name='enum'/>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='hostdev'>
|
|
|
|
<element name='hostdev'>
|
|
|
|
<ref name='supported'/>
|
|
|
|
<ref name='enum'/>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2014-09-17 07:52:54 +08:00
|
|
|
<define name='value'>
|
|
|
|
<zeroOrMore>
|
|
|
|
<element name='value'>
|
|
|
|
<text/>
|
|
|
|
</element>
|
|
|
|
</zeroOrMore>
|
|
|
|
</define>
|
|
|
|
|
2014-06-25 19:24:53 +08:00
|
|
|
<define name='supported'>
|
|
|
|
<attribute name='supported'>
|
2014-09-08 14:06:35 +08:00
|
|
|
<ref name="virYesNo"/>
|
2014-06-25 19:24:53 +08:00
|
|
|
</attribute>
|
|
|
|
</define>
|
|
|
|
|
|
|
|
<define name='enum'>
|
|
|
|
<zeroOrMore>
|
|
|
|
<element name='enum'>
|
|
|
|
<attribute name='name'>
|
|
|
|
<text/>
|
|
|
|
</attribute>
|
2014-09-17 07:52:54 +08:00
|
|
|
<ref name='value'/>
|
2014-06-25 19:24:53 +08:00
|
|
|
</element>
|
|
|
|
</zeroOrMore>
|
|
|
|
</define>
|
|
|
|
</grammar>
|