Signed-off-by: Martin Kletzander <mkletzan(a)redhat.com>
---
docs/schemas/capability.rng | 34 ++++++++++++++++++++++++++++++++++
1 file changed, 34 insertions(+)
diff --git a/docs/schemas/capability.rng b/docs/schemas/capability.rng
index 88e08d299ac9..208095302a63 100644
--- a/docs/schemas/capability.rng
+++ b/docs/schemas/capability.rng
@@ -45,6 +45,9 @@
<optional>
<ref name='topology'/>
</optional>
+ <optional>
+ <ref name='cache'/>
+ </optional>
<zeroOrMore>
<ref name='secmodel'/>
</zeroOrMore>
@@ -248,6 +251,37 @@
</element>
</define>
+ <define name='cache'>
+ <element name='cache'>
+ <oneOrMore>
+ <element name='bank'>
+ <attribute name='id'>
+ <ref name='unsignedInt'/>
+ </attribute>
+ <attribute name='level'>
+ <ref name='unsignedInt'/>
+ </attribute>
+ <attribute name='type'>
+ <choice>
+ <value>unified</value>
+ <value>instruction</value>
+ <value>data</value>
+ </choice>
+ </attribute>
+ <attribute name='size'>
+ <ref name='unsignedInt'/>
+ </attribute>
+ <attribute name='unit'>
+ <ref name='unit'/>
+ </attribute>
+ <attribute name='cpus'>
+ <ref name='cpuset'/>
+ </attribute>
+ </element>
+ </oneOrMore>
+ </element>
+ </define>
+
<define name='guestcaps'>
<element name='guest'>
<ref name='ostype'/>
--
2.12.2