[PATCH 2/3] vhost-user-scsi/blk: add xml validation check

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

 



Add vhost-user-scsi/blk xml schema to validate the correctness when
editing the xml for the new chardev.

Signed-off-by: Li Feng <fengli@xxxxxxxxxx>
---
 docs/schemas/domaincommon.rng | 48 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 48 insertions(+)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index 40eb4a2d75..63c629d117 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -4375,6 +4375,52 @@
     </optional>
   </define>
 
+  <define name="vhost-user-blk-pci">
+    <element name="vhost-user-blk-pci">
+      <optional>
+        <attribute name="type">
+          <choice>
+            <value>unix</value>
+          </choice>
+        </attribute>
+      </optional>
+      <interleave>
+        <optional>
+            <ref name="unixSocketSource"/>
+        </optional>
+        <optional>
+          <ref name="address"/>
+        </optional>
+        <optional>
+          <ref name="alias"/>
+        </optional>
+      </interleave>
+    </element>
+  </define>
+
+  <define name="vhost-user-scsi-pci">
+    <element name="vhost-user-scsi-pci">
+      <optional>
+        <attribute name="type">
+          <choice>
+            <value>unix</value>
+          </choice>
+        </attribute>
+      </optional>
+      <interleave>
+        <optional>
+            <ref name="unixSocketSource"/>
+        </optional>
+        <optional>
+          <ref name="address"/>
+        </optional>
+        <optional>
+          <ref name="alias"/>
+        </optional>
+      </interleave>
+    </element>
+  </define>
+
   <define name="vsock">
     <element name="vsock">
       <optional>
@@ -4973,6 +5019,8 @@
             <ref name="tpm"/>
             <ref name="shmem"/>
             <ref name="memorydev"/>
+            <ref name="vhost-user-blk-pci"/>
+            <ref name="vhost-user-scsi-pci"/>
           </choice>
         </zeroOrMore>
         <optional>
-- 
2.11.0


-- 
The SmartX email address is only for business purpose. Any sent message 
that is not related to the business is not authorized or permitted by 
SmartX.
本邮箱为北京志凌海纳科技有限公司(SmartX)工作邮箱. 如本邮箱发出的邮件与工作无关,该邮件未得到本公司任何的明示或默示的授权.



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

  Powered by Linux