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

[libvirt] [RFC v4 PATCH 5/5] PowerPC : Add ppc64 specific definitions to domain.rng



From: Bharata B Rao <bharata linux vnet ibm com>
Date: Thu, 1 Dec 2011 21:21:34 +0530
Subject: [PATCH 5/5] Add ppc64 specific definitions to domain.rng

ppc64 as new arch type and pseries as new machine type are
added under <os> ...  </os>. New address type spapr-vio is added.

Signed-off-by: Bharata B Rao <bharata linux vnet ibm com>
Signed-off-by: Prerna Saxena <prerna linux vnet ibm com>
---
 docs/schemas/domaincommon.rng |   35 +++++++++++++++++++++++++++++++++++
 1 files changed, 35 insertions(+), 0 deletions(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 22bbd46..6eb9b2f 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -192,6 +192,7 @@
           <ref name="hvmmips"/>
           <ref name="hvmsparc"/>
           <ref name="hvmppc"/>
+          <ref name="hvmppc64"/>
         </choice>
       </optional>
       <value>hvm</value>
@@ -262,6 +263,22 @@
       </optional>
     </group>
   </define>
+  <define name="hvmppc64">
+    <group>
+      <optional>
+        <attribute name="arch">
+          <value>ppc64</value>
+        </attribute>
+      </optional>
+      <optional>
+        <attribute name="machine">
+          <choice>
+            <value>pseries</value>
+          </choice>
+        </attribute>
+      </optional>
+    </group>
+  </define>
   <define name="osexe">
     <element name="os">
       <element name="type">
@@ -2178,6 +2195,13 @@
       <ref name="usbPort"/>
     </attribute>
   </define>
+  <define name="spaprvioaddress">
+    <optional>
+      <attribute name="reg">
+        <ref name="spaprvioReg"/>
+      </attribute>
+    </optional>
+  </define>
   <define name="pciaddress">
     <optional>
       <attribute name="domain">
@@ -2556,6 +2580,12 @@
           </attribute>
           <ref name="usbportaddress"/>
         </group>
+        <group>
+          <attribute name="type">
+            <value>spapr-vio</value>
+          </attribute>
+          <ref name="spaprvioaddress"/>
+        </group>
       </choice>
     </element>
   </define>
@@ -2845,4 +2875,9 @@
       <param name="pattern">[a-zA-Z0-9_\.:]+</param>
     </data>
   </define>
+  <define name="spaprvioReg">
+    <data type="string">
+      <param name="pattern">(0x)?[0-9a-fA-F]+</param>
+    </data>
+  </define>
 </grammar>
-- 
1.7.3.4



-- 
Prerna Saxena

Linux Technology Centre,
IBM Systems and Technology Lab,
Bangalore, India


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