[libvirt] [PATCH v3 2/3] rng: Separate virtio serial port and ccid slot from driveUnit

Han Han hhan at redhat.com
Wed Dec 4 09:35:38 UTC 2019


Signed-off-by: Han Han <hhan at redhat.com>
---
 docs/schemas/domaincommon.rng | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index a83c9ae7a5..d60d94e9ae 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -4926,7 +4926,7 @@
     </optional>
     <optional>
       <attribute name="port">
-        <ref name="driveUnit"/>
+        <ref name="virtioserialPort"/>
       </attribute>
     </optional>
   </define>
@@ -4936,7 +4936,7 @@
     </attribute>
     <optional>
       <attribute name="slot">
-        <ref name="driveUnit"/>
+        <ref name="ccidSlot"/>
       </attribute>
     </optional>
   </define>
@@ -6488,6 +6488,16 @@
       <param name="pattern">[a-zA-Z0-9_\-.]+</param>
     </data>
   </define>
+  <define name="virtioserialPort">
+    <data type="string">
+      <param name="pattern">[0-9]{1,2}</param>
+    </data>
+  </define>
+  <define name="ccidSlot">
+    <data type="string">
+      <param name="pattern">[0-9]{1,2}</param>
+    </data>
+  </define>
   <define name='alias'>
     <element name='alias'>
       <attribute name='name'>
-- 
2.24.0.rc1




More information about the libvir-list mailing list