[libvirt] [PATCH 2/7] schema: List allowed GIC versions

Andrea Bolognani abologna at redhat.com
Wed Feb 3 20:25:57 UTC 2016


This change allows to use "host" as a GIC version in the domain XML.

Since we'll need to update the virGICVersion enumeration to support
new GIC versions anyway, it makes sense to be a bit more strict in
the schema as well and reject values that are not in the enumeration.
---
 docs/schemas/domaincommon.rng | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 5deb17b..67af93a 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -4154,7 +4154,11 @@
             <element name="gic">
               <optional>
                 <attribute name="version">
-                  <ref name="positiveInteger"/>
+                  <choice>
+                    <value>host</value>
+                    <value>2</value>
+                    <value>3</value>
+                  </choice>
                 </attribute>
               </optional>
             </element>
-- 
2.5.0




More information about the libvir-list mailing list