render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
Pablo Greco 40546a
From eb6fef622ded5762649db2d766c1eb3d876859c9 Mon Sep 17 00:00:00 2001
Pablo Greco 40546a
Message-Id: <eb6fef622ded5762649db2d766c1eb3d876859c9@dist-git>
Pablo Greco 40546a
From: Erik Skultety <eskultet@redhat.com>
Pablo Greco 40546a
Date: Mon, 15 Jul 2019 08:52:07 +0200
Pablo Greco 40546a
Subject: [PATCH] docs: schemas: Decouple the virtio options from each other
Pablo Greco 40546a
MIME-Version: 1.0
Pablo Greco 40546a
Content-Type: text/plain; charset=UTF-8
Pablo Greco 40546a
Content-Transfer-Encoding: 8bit
Pablo Greco 40546a
Pablo Greco 40546a
Currently, all of the VirtioOptions are under a single <optional>
Pablo Greco 40546a
element, however, neither our parser/formatter or QEMU driver requires
Pablo Greco 40546a
the presence of all the options if only a single one from the set has
Pablo Greco 40546a
been specified, so fix it and silence the schema validator.
Pablo Greco 40546a
Pablo Greco 40546a
Signed-off-by: Erik Skultety <eskultet@redhat.com>
Pablo Greco 40546a
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Pablo Greco 40546a
(cherry picked from commit 87b4e1cd7e7ec23dc69c8082948cd3bb49e18ff3)
Pablo Greco 40546a
Pablo Greco 40546a
https://bugzilla.redhat.com/show_bug.cgi?id=1729675
Pablo Greco 40546a
Pablo Greco 40546a
Signed-off-by: Erik Skultety <eskultet@redhat.com>
Pablo Greco 40546a
Message-Id: <9d20b6d62248ef82a42128c461ef8c94cbc64e09.1563173480.git.eskultet@redhat.com>
Pablo Greco 40546a
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
Pablo Greco 40546a
Reviewed-by: Ján Tomko <jtomko@redhat.com>
Pablo Greco 40546a
---
Pablo Greco 40546a
 docs/schemas/domaincommon.rng | 2 ++
Pablo Greco 40546a
 1 file changed, 2 insertions(+)
Pablo Greco 40546a
Pablo Greco 40546a
diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
Pablo Greco 40546a
index 2b6d4dced6..7d37caa246 100644
Pablo Greco 40546a
--- a/docs/schemas/domaincommon.rng
Pablo Greco 40546a
+++ b/docs/schemas/domaincommon.rng
Pablo Greco 40546a
@@ -5417,6 +5417,8 @@
Pablo Greco 40546a
       <attribute name="iommu">
Pablo Greco 40546a
         <ref name="virOnOff"/>
Pablo Greco 40546a
       </attribute>
Pablo Greco 40546a
+    </optional>
Pablo Greco 40546a
+    <optional>
Pablo Greco 40546a
       <attribute name="ats">
Pablo Greco 40546a
         <ref name="virOnOff"/>
Pablo Greco 40546a
       </attribute>
Pablo Greco 40546a
-- 
Pablo Greco 40546a
2.22.0
Pablo Greco 40546a