[PATCH] schema: use arch list from basictypes for os arch attribute

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx>
---
 docs/schemas/domaincommon.rng | 26 ++++++--------------------
 1 file changed, 6 insertions(+), 20 deletions(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 7c6fa5c..fc28fb3 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -331,7 +331,9 @@
   <define name="ostypehvm">
     <element name="type">
       <optional>
-        <ref name="archList"/>
+        <attribute name="arch">
+          <ref name="archnames"/>
+        </attribute>
       </optional>
       <optional>
         <attribute name="machine">
@@ -344,29 +346,13 @@
     </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>
-- 
2.1.4

Attachment: signature.asc
Description: This is a digitally signed message part

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]