render / rpms / libvirt

Forked from rpms/libvirt 9 months ago
Clone
79b470
From e37b1531942872a229b9f45524ea4679f3b1e8d6 Mon Sep 17 00:00:00 2001
79b470
Message-Id: <e37b1531942872a229b9f45524ea4679f3b1e8d6@dist-git>
79b470
From: Michal Privoznik <mprivozn@redhat.com>
79b470
Date: Mon, 9 Nov 2020 17:22:33 +0100
79b470
Subject: [PATCH] RNG: Allow interleaving of /domain/cpu/numa/cell children
79b470
MIME-Version: 1.0
79b470
Content-Type: text/plain; charset=UTF-8
79b470
Content-Transfer-Encoding: 8bit
79b470
79b470
So far, the <cell/> element can have two types of children
79b470
elements: <distances/> and <cache/> (which can be repeated more
79b470
times). However, there is no reason to require specific order in
79b470
input XML. Allow elements to be interleaved.
79b470
79b470
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
79b470
Reviewed-by: Ján Tomko <jtomko@redhat.com>
79b470
(cherry picked from commit fd2ad818b29ca56904dd228f0774f553f99c1157)
79b470
79b470
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1749518
79b470
79b470
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
79b470
Message-Id: <48b8e99ea6fbc6bcab0f7b3d17e7824ef1b232e2.1604938847.git.mprivozn@redhat.com>
79b470
Reviewed-by: Ján Tomko <jtomko@redhat.com>
79b470
---
79b470
 docs/schemas/cputypes.rng | 22 ++++++++++++----------
79b470
 1 file changed, 12 insertions(+), 10 deletions(-)
79b470
79b470
diff --git a/docs/schemas/cputypes.rng b/docs/schemas/cputypes.rng
79b470
index ba30dbf9ff..a1cae23161 100644
79b470
--- a/docs/schemas/cputypes.rng
79b470
+++ b/docs/schemas/cputypes.rng
79b470
@@ -146,16 +146,18 @@
79b470
           <ref name="virYesNo"/>
79b470
         </attribute>
79b470
       </optional>
79b470
-      <optional>
79b470
-        <element name="distances">
79b470
-          <oneOrMore>
79b470
-            <ref name="numaDistance"/>
79b470
-          </oneOrMore>
79b470
-        </element>
79b470
-      </optional>
79b470
-      <zeroOrMore>
79b470
-        <ref name="numaCache"/>
79b470
-      </zeroOrMore>
79b470
+      <interleave>
79b470
+        <optional>
79b470
+          <element name="distances">
79b470
+            <oneOrMore>
79b470
+              <ref name="numaDistance"/>
79b470
+            </oneOrMore>
79b470
+          </element>
79b470
+        </optional>
79b470
+        <zeroOrMore>
79b470
+          <ref name="numaCache"/>
79b470
+        </zeroOrMore>
79b470
+      </interleave>
79b470
     </element>
79b470
   </define>
79b470
 
79b470
-- 
79b470
2.29.2
79b470