]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Add New address type spapr-vio to domain.rng
authorBharata B Rao <bharata@linux.vnet.ibm.com>
Mon, 12 Dec 2011 23:39:31 +0000 (10:39 +1100)
committerEric Blake <eblake@redhat.com>
Tue, 20 Dec 2011 23:01:25 +0000 (16:01 -0700)
Original patch by Bharata. Updated to use {1,16} in spaprvioReg based
on example from Eric Blake.

Signed-off-by: Bharata B Rao <bharata@linux.vnet.ibm.com>
Signed-off-by: Prerna Saxena <prerna@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
docs/schemas/domaincommon.rng

index 27ec1da66dff5c87800901cfe132a2255706ccec..553a6f095ed6e81fd2ab2b50f5bd8b4f5eae14ba 100644 (file)
       <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">
           </attribute>
           <ref name="usbportaddress"/>
         </group>
+        <group>
+          <attribute name="type">
+            <value>spapr-vio</value>
+          </attribute>
+          <ref name="spaprvioaddress"/>
+        </group>
       </choice>
     </element>
   </define>
       <param name="pattern">[a-zA-Z0-9_\.:]+</param>
     </data>
   </define>
+  <define name="spaprvioReg">
+    <data type="string">
+      <param name="pattern">(0x)?[0-9a-fA-F]{1,16}</param>
+    </data>
+  </define>
 </grammar>