2014-06-25 11:24:53 +00: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">
|
2020-09-30 11:54:58 +00:00
|
|
|
<include href="basictypes.rng"/>
|
|
|
|
<include href="cputypes.rng"/>
|
2014-06-25 11:24:53 +00:00
|
|
|
<start>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="domainCapabilities"/>
|
2014-06-25 11:24:53 +00:00
|
|
|
</start>
|
|
|
|
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="domainCapabilities">
|
|
|
|
<element name="domainCapabilities">
|
2014-06-25 11:24:53 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="path">
|
2014-06-25 11:24:53 +00:00
|
|
|
<ref name="absFilePath"/>
|
|
|
|
</element>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="domain">
|
2014-06-25 11:24:53 +00:00
|
|
|
<text/>
|
|
|
|
</element>
|
2017-03-26 14:35:14 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="machine">
|
2017-03-26 14:35:14 +00:00
|
|
|
<text/>
|
|
|
|
</element>
|
|
|
|
</optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="arch">
|
2014-06-25 11:24:53 +00:00
|
|
|
<text/>
|
|
|
|
</element>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="vcpu"/>
|
2014-06-25 11:24:53 +00:00
|
|
|
</optional>
|
2017-10-19 12:19:38 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="iothreads"/>
|
2017-10-19 12:19:38 +00:00
|
|
|
</optional>
|
2014-09-16 12:47:47 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="os"/>
|
2014-09-16 12:47:47 +00:00
|
|
|
</optional>
|
2016-04-22 09:08:57 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="cpu"/>
|
2016-04-22 09:08:57 +00:00
|
|
|
</optional>
|
2021-07-15 12:18:04 +00:00
|
|
|
<optional>
|
|
|
|
<ref name="memoryBacking"/>
|
|
|
|
</optional>
|
2014-06-25 11:24:53 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="devices"/>
|
2014-06-25 11:24:53 +00:00
|
|
|
</optional>
|
2016-03-09 17:42:14 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="features"/>
|
2016-03-09 17:42:14 +00:00
|
|
|
</optional>
|
2014-06-25 11:24:53 +00:00
|
|
|
</interleave>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="vcpu">
|
|
|
|
<element name="vcpu">
|
|
|
|
<attribute name="max">
|
|
|
|
<ref name="unsignedInt"/>
|
2014-06-25 11:24:53 +00:00
|
|
|
</attribute>
|
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="iothreads">
|
|
|
|
<element name="iothreads">
|
|
|
|
<ref name="supported"/>
|
2017-10-19 12:19:38 +00:00
|
|
|
<empty/>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="loader">
|
|
|
|
<element name="loader">
|
|
|
|
<ref name="supported"/>
|
2014-09-16 23:52:54 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="value"/>
|
2014-09-16 23:52:54 +00:00
|
|
|
</optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="enum"/>
|
2014-09-16 12:47:47 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="os">
|
|
|
|
<element name="os">
|
2014-09-16 12:47:47 +00:00
|
|
|
<interleave>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="supported"/>
|
|
|
|
<ref name="enum"/>
|
2014-09-16 12:47:47 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="loader"/>
|
2014-09-16 12:47:47 +00:00
|
|
|
</optional>
|
|
|
|
</interleave>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="cpu">
|
|
|
|
<element name="cpu">
|
|
|
|
<ref name="cpuHost"/>
|
2021-02-05 15:59:35 +00:00
|
|
|
<ref name="cpuMax"/>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="cpuHostModel"/>
|
|
|
|
<ref name="cpuCustom"/>
|
2016-04-22 09:08:57 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="cpuHost">
|
|
|
|
<element name="mode">
|
|
|
|
<attribute name="name">
|
2016-04-22 09:08:57 +00:00
|
|
|
<value>host-passthrough</value>
|
|
|
|
</attribute>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="supported"/>
|
2020-06-02 22:28:10 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="enum"/>
|
2020-06-02 22:28:10 +00:00
|
|
|
</optional>
|
2016-04-22 09:08:57 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2021-02-05 15:59:35 +00:00
|
|
|
<define name="cpuMax">
|
|
|
|
<element name="mode">
|
|
|
|
<attribute name="name">
|
|
|
|
<value>maximum</value>
|
|
|
|
</attribute>
|
|
|
|
<ref name="supported"/>
|
|
|
|
<optional>
|
|
|
|
<ref name="enum"/>
|
|
|
|
</optional>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="cpuHostModel">
|
|
|
|
<element name="mode">
|
|
|
|
<attribute name="name">
|
2016-04-22 09:08:57 +00:00
|
|
|
<value>host-model</value>
|
|
|
|
</attribute>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="supported"/>
|
2016-06-15 14:45:47 +00:00
|
|
|
<optional>
|
|
|
|
<ref name="cpuModel"/>
|
|
|
|
<optional>
|
|
|
|
<ref name="cpuVendor"/>
|
|
|
|
</optional>
|
|
|
|
<zeroOrMore>
|
|
|
|
<ref name="cpuFeature"/>
|
|
|
|
</zeroOrMore>
|
|
|
|
</optional>
|
2016-04-22 09:08:57 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="cpuCustom">
|
|
|
|
<element name="mode">
|
|
|
|
<attribute name="name">
|
2016-04-22 09:08:57 +00:00
|
|
|
<value>custom</value>
|
|
|
|
</attribute>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="supported"/>
|
2016-04-22 09:08:57 +00:00
|
|
|
<zeroOrMore>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="model">
|
|
|
|
<attribute name="usable">
|
2016-06-15 14:15:44 +00:00
|
|
|
<choice>
|
|
|
|
<value>yes</value>
|
|
|
|
<value>no</value>
|
|
|
|
<value>unknown</value>
|
|
|
|
</choice>
|
|
|
|
</attribute>
|
2021-01-22 11:15:08 +00:00
|
|
|
<optional>
|
|
|
|
<attribute name="deprecated">
|
2022-01-10 11:08:01 +00:00
|
|
|
<ref name="virYesNo"/>
|
2021-01-22 11:15:08 +00:00
|
|
|
</attribute>
|
|
|
|
</optional>
|
2016-04-22 09:08:57 +00:00
|
|
|
<text/>
|
|
|
|
</element>
|
|
|
|
</zeroOrMore>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2021-07-15 12:18:04 +00:00
|
|
|
<define name="memoryBacking">
|
|
|
|
<element name="memoryBacking">
|
|
|
|
<ref name="supported"/>
|
|
|
|
<ref name="enum"/>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="devices">
|
|
|
|
<element name="devices">
|
2019-02-09 00:10:17 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="disk"/>
|
2019-02-09 00:10:17 +00:00
|
|
|
</optional>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="graphics"/>
|
2019-02-09 00:10:17 +00:00
|
|
|
</optional>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="video"/>
|
2019-02-09 00:10:17 +00:00
|
|
|
</optional>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="hostdev"/>
|
2019-02-09 00:10:17 +00:00
|
|
|
</optional>
|
2019-03-31 21:19:33 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="rng"/>
|
2019-03-31 21:19:33 +00:00
|
|
|
</optional>
|
2021-05-12 17:12:55 +00:00
|
|
|
<optional>
|
|
|
|
<ref name="filesystem"/>
|
|
|
|
</optional>
|
2021-11-23 17:17:20 +00:00
|
|
|
<optional>
|
|
|
|
<ref name="tpm"/>
|
|
|
|
</optional>
|
2014-06-25 11:24:53 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="disk">
|
|
|
|
<element name="disk">
|
|
|
|
<ref name="supported"/>
|
|
|
|
<ref name="enum"/>
|
2014-06-25 11:24:53 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="graphics">
|
|
|
|
<element name="graphics">
|
|
|
|
<ref name="supported"/>
|
|
|
|
<ref name="enum"/>
|
2016-05-08 15:57:20 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="video">
|
|
|
|
<element name="video">
|
|
|
|
<ref name="supported"/>
|
|
|
|
<ref name="enum"/>
|
2016-05-08 16:11:39 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="hostdev">
|
|
|
|
<element name="hostdev">
|
|
|
|
<ref name="supported"/>
|
|
|
|
<ref name="enum"/>
|
2014-06-25 11:24:53 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="rng">
|
|
|
|
<element name="rng">
|
|
|
|
<ref name="supported"/>
|
|
|
|
<ref name="enum"/>
|
2019-03-31 21:19:33 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2021-05-12 17:12:55 +00:00
|
|
|
<define name="filesystem">
|
|
|
|
<element name="filesystem">
|
|
|
|
<ref name="supported"/>
|
|
|
|
<ref name="enum"/>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2021-11-23 17:17:20 +00:00
|
|
|
<define name="tpm">
|
|
|
|
<element name="tpm">
|
|
|
|
<ref name="supported"/>
|
|
|
|
<ref name="enum"/>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="features">
|
|
|
|
<element name="features">
|
2019-02-09 00:10:17 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="gic"/>
|
2019-02-09 00:10:17 +00:00
|
|
|
</optional>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="vmcoreinfo"/>
|
2019-02-09 00:10:17 +00:00
|
|
|
</optional>
|
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="vmgenid"/>
|
2019-02-09 00:10:17 +00:00
|
|
|
</optional>
|
2019-10-30 15:54:56 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="backingStoreInput"/>
|
2019-10-30 15:54:56 +00:00
|
|
|
</optional>
|
2019-12-03 16:36:35 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="backup"/>
|
2019-12-03 16:36:35 +00:00
|
|
|
</optional>
|
2021-07-16 09:44:32 +00:00
|
|
|
<optional>
|
|
|
|
<ref name="s390-pv"/>
|
|
|
|
</optional>
|
2019-02-09 00:10:17 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="sev"/>
|
2019-02-09 00:10:17 +00:00
|
|
|
</optional>
|
2016-03-09 17:42:14 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="gic">
|
|
|
|
<element name="gic">
|
|
|
|
<ref name="supported"/>
|
|
|
|
<ref name="enum"/>
|
2016-03-09 17:42:14 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="vmcoreinfo">
|
|
|
|
<element name="vmcoreinfo">
|
|
|
|
<ref name="supported"/>
|
2018-04-17 17:54:28 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="vmgenid">
|
|
|
|
<element name="genid">
|
|
|
|
<ref name="supported"/>
|
2018-04-27 12:16:40 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="backingStoreInput">
|
|
|
|
<element name="backingStoreInput">
|
|
|
|
<ref name="supported"/>
|
2019-10-30 15:54:56 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="backup">
|
|
|
|
<element name="backup">
|
|
|
|
<ref name="supported"/>
|
2019-12-03 16:36:35 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2021-07-16 09:44:32 +00:00
|
|
|
<define name="s390-pv">
|
|
|
|
<element name="s390-pv">
|
|
|
|
<ref name="supported"/>
|
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="sev">
|
|
|
|
<element name="sev">
|
|
|
|
<ref name="supported"/>
|
2018-06-14 12:18:30 +00:00
|
|
|
<optional>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="cbitpos">
|
|
|
|
<data type="unsignedInt"/>
|
2018-06-14 12:18:30 +00:00
|
|
|
</element>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="reducedPhysBits">
|
|
|
|
<data type="unsignedInt"/>
|
2018-06-14 12:18:30 +00:00
|
|
|
</element>
|
2021-12-09 16:47:43 +00:00
|
|
|
<element name="maxGuests">
|
|
|
|
<data type="unsignedInt"/>
|
|
|
|
</element>
|
|
|
|
<element name="maxESGuests">
|
|
|
|
<data type="unsignedInt"/>
|
|
|
|
</element>
|
2018-06-14 12:18:30 +00:00
|
|
|
</optional>
|
2018-06-08 14:40:52 +00:00
|
|
|
</element>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="value">
|
2014-09-16 23:52:54 +00:00
|
|
|
<zeroOrMore>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="value">
|
2014-09-16 23:52:54 +00:00
|
|
|
<text/>
|
|
|
|
</element>
|
|
|
|
</zeroOrMore>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="supported">
|
|
|
|
<attribute name="supported">
|
2014-09-08 06:06:35 +00:00
|
|
|
<ref name="virYesNo"/>
|
2014-06-25 11:24:53 +00:00
|
|
|
</attribute>
|
|
|
|
</define>
|
|
|
|
|
2020-09-30 11:54:58 +00:00
|
|
|
<define name="enum">
|
2014-06-25 11:24:53 +00:00
|
|
|
<zeroOrMore>
|
2020-09-30 11:54:58 +00:00
|
|
|
<element name="enum">
|
|
|
|
<attribute name="name">
|
2014-06-25 11:24:53 +00:00
|
|
|
<text/>
|
|
|
|
</attribute>
|
2020-09-30 11:54:58 +00:00
|
|
|
<ref name="value"/>
|
2014-06-25 11:24:53 +00:00
|
|
|
</element>
|
|
|
|
</zeroOrMore>
|
|
|
|
</define>
|
|
|
|
</grammar>
|