]> xenbits.xensource.com Git - libvirt.git/commitdiff
schema: List allowed GIC versions
authorAndrea Bolognani <abologna@redhat.com>
Wed, 3 Feb 2016 13:34:32 +0000 (14:34 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 16 Feb 2016 13:58:58 +0000 (14:58 +0100)
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

index 5deb17b0316e28e510487e8e87a65d4706fc5f91..67af93a004f082d0f1f42a89cdc8d8cc76191216 100644 (file)
             <element name="gic">
               <optional>
                 <attribute name="version">
-                  <ref name="positiveInteger"/>
+                  <choice>
+                    <value>host</value>
+                    <value>2</value>
+                    <value>3</value>
+                  </choice>
                 </attribute>
               </optional>
             </element>