[libvirt] [PATCH 3/7] schema: Validate GIC capabilities

Andrea Bolognani abologna at redhat.com
Mon Apr 18 17:43:59 UTC 2016


We need to expose GIC capabilities in the domain capabilities
XML: update the schema to validate documents that contain the
new information.
---
 docs/schemas/domaincaps.rng | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/docs/schemas/domaincaps.rng b/docs/schemas/domaincaps.rng
index 35d3745..0d2777b 100644
--- a/docs/schemas/domaincaps.rng
+++ b/docs/schemas/domaincaps.rng
@@ -31,6 +31,9 @@
         <optional>
           <ref name='devices'/>
         </optional>
+        <optional>
+          <ref name='features'/>
+        </optional>
       </interleave>
     </element>
   </define>
@@ -88,6 +91,21 @@
     </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'>
-- 
2.5.5




More information about the libvir-list mailing list