render / rpms / libvirt

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