]> xenbits.xensource.com Git - libvirt.git/commitdiff
schema: use arch list from basictypes for os arch attribute
authorJames Cowgill <james410@cowgill.org.uk>
Mon, 8 Jun 2015 13:42:30 +0000 (14:42 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 11 Jun 2015 14:57:45 +0000 (16:57 +0200)
I see no reason to duplicate this list of architectures. This also allows
more guest architectures to be used with libvirt (like the mips64el qemu
machine I am trying to run).

Signed-off-by: James Cowgill <james410@cowgill.org.uk>
docs/schemas/domaincommon.rng

index 5dc48f73b0c3ae16ea76f93ae4e94e410d81bfc6..e38b92743de6d6c5ce9c5ca4439618eb30e7e463 100644 (file)
   <define name="ostypehvm">
     <element name="type">
       <optional>
-        <ref name="archList"/>
+        <attribute name="arch">
+          <ref name="archnames"/>
+        </attribute>
       </optional>
       <optional>
         <attribute name="machine">
     </element>
   </define>
 
-  <define name="archList">
-    <attribute name="arch">
-      <choice>
-        <value>armv7l</value>
-        <value>aarch64</value>
-        <value>i686</value>
-        <value>x86_64</value>
-        <value>mips</value>
-        <value>ppc</value>
-        <value>ppc64</value>
-        <value>ppc64le</value>
-        <value>s390</value>
-        <value>s390x</value>
-        <value>sparc</value>
-      </choice>
-    </attribute>
-  </define>
-
   <define name="osexe">
     <element name="os">
       <element name="type">
         <optional>
-          <ref name="archList"/>
+          <attribute name="arch">
+            <ref name="archnames"/>
+          </attribute>
         </optional>
         <value>exe</value>
       </element>