mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-06 13:20:20 +00:00
614581f32b
This new module holds and formats capabilities for emulator. If you are about to create a new domain, you may want to know what is the host or hypervisor capable of. To make sure we don't regress on the XML, the formatting is not something left for each driver to implement, rather there's general format function. The domain capabilities is a lockable object (even though the locking is not necessary yet) which uses reference counter. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
91 lines
1.9 KiB
XML
91 lines
1.9 KiB
XML
<?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>
|
|
<optional>
|
|
<ref name='devices'/>
|
|
</optional>
|
|
</interleave>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='vcpu'>
|
|
<element name='vcpu'>
|
|
<attribute name='max'>
|
|
<ref name='unsignedInt'/>
|
|
</attribute>
|
|
<empty/>
|
|
</element>
|
|
</define>
|
|
|
|
<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>
|
|
|
|
<define name='supported'>
|
|
<attribute name='supported'>
|
|
<choice>
|
|
<value>yes</value>
|
|
<value>no</value>
|
|
</choice>
|
|
</attribute>
|
|
</define>
|
|
|
|
<define name='enum'>
|
|
<zeroOrMore>
|
|
<element name='enum'>
|
|
<attribute name='name'>
|
|
<text/>
|
|
</attribute>
|
|
<zeroOrMore>
|
|
<element name='value'>
|
|
<text/>
|
|
</element>
|
|
</zeroOrMore>
|
|
</element>
|
|
</zeroOrMore>
|
|
</define>
|
|
</grammar>
|