[libvirt] [PATCH v2 08/12] Add RNG schema for host cache information in capabilities

Martin Kletzander mkletzan at redhat.com
Wed Apr 5 14:36:31 UTC 2017


Signed-off-by: Martin Kletzander <mkletzan at 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




More information about the libvir-list mailing list