mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 23:25:24 +00:00
167280e7f6
The patch adds <cpu> element to domain capabilities XML: <cpu> <mode name='host-passthrough' supported='yes'/> <mode name='host-model' supported='yes'/> <mode name='custom' supported='yes'> <model>Broadwell</model> <model>Broadwell-noTSX</model> ... </mode> </cpu> Applications can use it to inspect what CPU configuration modes are supported for a specific combination of domain type, emulator binary, guest architecture and machine type. Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
193 lines
4.0 KiB
XML
193 lines
4.0 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='os'/>
|
|
</optional>
|
|
<optional>
|
|
<ref name='cpu'/>
|
|
</optional>
|
|
<optional>
|
|
<ref name='devices'/>
|
|
</optional>
|
|
<optional>
|
|
<ref name='features'/>
|
|
</optional>
|
|
</interleave>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='vcpu'>
|
|
<element name='vcpu'>
|
|
<attribute name='max'>
|
|
<ref name='unsignedInt'/>
|
|
</attribute>
|
|
<empty/>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='loader'>
|
|
<element name='loader'>
|
|
<ref name='supported'/>
|
|
<optional>
|
|
<ref name='value'/>
|
|
</optional>
|
|
<ref name='enum'/>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='os'>
|
|
<element name='os'>
|
|
<interleave>
|
|
<ref name='supported'/>
|
|
<optional>
|
|
<ref name='loader'/>
|
|
</optional>
|
|
</interleave>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='cpu'>
|
|
<element name='cpu'>
|
|
<ref name='cpuHost'/>
|
|
<ref name='cpuHostModel'/>
|
|
<ref name='cpuCustom'/>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='cpuHost'>
|
|
<element name='mode'>
|
|
<attribute name='name'>
|
|
<value>host-passthrough</value>
|
|
</attribute>
|
|
<ref name='supported'/>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='cpuHostModel'>
|
|
<element name='mode'>
|
|
<attribute name='name'>
|
|
<value>host-model</value>
|
|
</attribute>
|
|
<ref name='supported'/>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='cpuCustom'>
|
|
<element name='mode'>
|
|
<attribute name='name'>
|
|
<value>custom</value>
|
|
</attribute>
|
|
<ref name='supported'/>
|
|
<zeroOrMore>
|
|
<element name='model'>
|
|
<text/>
|
|
</element>
|
|
</zeroOrMore>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='devices'>
|
|
<element name='devices'>
|
|
<interleave>
|
|
<ref name='disk'/>
|
|
<ref name='graphics'/>
|
|
<ref name='video'/>
|
|
<ref name='hostdev'/>
|
|
</interleave>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='disk'>
|
|
<element name='disk'>
|
|
<ref name='supported'/>
|
|
<ref name='enum'/>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='graphics'>
|
|
<element name='graphics'>
|
|
<ref name='supported'/>
|
|
<ref name='enum'/>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='video'>
|
|
<element name='video'>
|
|
<ref name='supported'/>
|
|
<ref name='enum'/>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='hostdev'>
|
|
<element name='hostdev'>
|
|
<ref name='supported'/>
|
|
<ref name='enum'/>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='features'>
|
|
<element name='features'>
|
|
<interleave>
|
|
<ref name='gic'/>
|
|
</interleave>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='gic'>
|
|
<element name='gic'>
|
|
<ref name='supported'/>
|
|
<ref name='enum'/>
|
|
</element>
|
|
</define>
|
|
|
|
<define name='value'>
|
|
<zeroOrMore>
|
|
<element name='value'>
|
|
<text/>
|
|
</element>
|
|
</zeroOrMore>
|
|
</define>
|
|
|
|
<define name='supported'>
|
|
<attribute name='supported'>
|
|
<ref name="virYesNo"/>
|
|
</attribute>
|
|
</define>
|
|
|
|
<define name='enum'>
|
|
<zeroOrMore>
|
|
<element name='enum'>
|
|
<attribute name='name'>
|
|
<text/>
|
|
</attribute>
|
|
<ref name='value'/>
|
|
</element>
|
|
</zeroOrMore>
|
|
</define>
|
|
</grammar>
|