[libvirt] [PATCH 03/16] docs: Update RNG schema to reflect the new hostdev type mdev

Erik Skultety posted 16 patches 9 years ago
There is a newer version of this series
[libvirt] [PATCH 03/16] docs: Update RNG schema to reflect the new hostdev type mdev
Posted by Erik Skultety 9 years ago
To keep the domain XML as much platform agnostic as possible, do not
expose an element/attribute which would contain path directly to the
syfs filesystem which the mediated devices are build upon. Instead,
identify each mediated device by the parent physical device and a UUID
which is an optional element, but only if managed='yes' which is not
implemented yet.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
---
 docs/schemas/domaincommon.rng | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
index cc6e0d0..087ca82 100644
--- a/docs/schemas/domaincommon.rng
+++ b/docs/schemas/domaincommon.rng
@@ -3984,6 +3984,7 @@
       <ref name="hostdevsubsysusb"/>
       <ref name="hostdevsubsysscsi"/>
       <ref name="hostdevsubsyshost"/>
+      <ref name="hostdevsubsysmdev"/>
     </choice>
   </define>
 
@@ -4134,6 +4135,22 @@
     </element>
   </define>
 
+  <define name="hostdevsubsysmdev">
+    <attribute name="type">
+      <value>mdev</value>
+    </attribute>
+    <element name="source">
+      <element name="address">
+        <ref name="pciaddress"/>
+      </element>
+      <optional>
+        <element name="uuid">
+          <ref name="UUID"/>
+        </element>
+      </optional>
+    </element>
+  </define>
+
   <define name="hostdevcapsstorage">
     <attribute name="type">
       <value>storage</value>
-- 
2.10.2

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH 03/16] docs: Update RNG schema to reflect the new hostdev type mdev
Posted by Michal Privoznik 9 years ago
On 06.02.2017 13:19, Erik Skultety wrote:
> To keep the domain XML as much platform agnostic as possible, do not
> expose an element/attribute which would contain path directly to the
> syfs filesystem which the mediated devices are build upon. Instead,
> identify each mediated device by the parent physical device and a UUID
> which is an optional element, but only if managed='yes' which is not
> implemented yet.
> 
> Signed-off-by: Erik Skultety <eskultet@redhat.com>
> ---
>  docs/schemas/domaincommon.rng | 17 +++++++++++++++++
>  1 file changed, 17 insertions(+)
> 

This one, 04/16, 05/16 and 16/16 should be merged together.

Michal

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list