[PATCH 2/6] Add New address type spapr-vio to domain.rng

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

 



Original patch by Bharata. Updated to use {1,16} in spaprvioReg based
on example from Eric Blake.

Signed-off-by: Bharata B Rao <bharata@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Prerna Saxena <prerna@xxxxxxxxxxxxxxxxxx>
Signed-off-by: Michael Ellerman <michael@xxxxxxxxxxxxxx>
---
 docs/schemas/domaincommon.rng |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 27ec1da..553a6f0 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -2199,6 +2199,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">
@@ -2577,6 +2584,12 @@
           </attribute>
           <ref name="usbportaddress"/>
         </group>
+        <group>
+          <attribute name="type">
+            <value>spapr-vio</value>
+          </attribute>
+          <ref name="spaprvioaddress"/>
+        </group>
       </choice>
     </element>
   </define>
@@ -2866,4 +2879,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]{1,16}</param>
+    </data>
+  </define>
 </grammar>
-- 
1.7.7.3

--
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]