Original patch by Bharata. Updated to use {1,16} in spaprvioReg based
on example from Eric Blake.
Signed-off-by: Bharata B Rao <bharata(a)linux.vnet.ibm.com>
Signed-off-by: Prerna Saxena <prerna(a)linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <michael(a)ellerman.id.au>
---
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