summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Cowgill <james410@cowgill.org.uk>2015-06-08 14:42:30 +0100
committerMichal Privoznik <mprivozn@redhat.com>2015-06-11 16:57:45 +0200
commit68c0ff3a71ba21861e8ccd4ee9c77e2fc6891589 (patch)
treee1219aa316b75374344b22a75340e0389ee4a2d8
parentd9a610f90c6cede8fe8f69603df415793b432cd0 (diff)
downloadlibvirt-68c0ff3a71ba21861e8ccd4ee9c77e2fc6891589.tar.gz
schema: use arch list from basictypes for os arch attribute
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>
-rw-r--r--docs/schemas/domaincommon.rng26
1 files changed, 6 insertions, 20 deletions
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 5dc48f73b0..e38b92743d 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>