[libvirt PATCH v4 1/5] schema: Make element "topology" in host CPU definition optional

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

 



This element is not always present, see e.g.
x86_64-cpuid-Xeon-X5460-host.xml, x86_64-cpuid-Pentium-P6100-host.xml,
or x86_64-cpuid-EPYC-7601-32-Core-ibpb-host.xml.

Signed-off-by: Tim Wiederhake <twiederh@xxxxxxxxxx>
---
 docs/schemas/cputypes.rng | 24 +++++++++++++-----------
 1 file changed, 13 insertions(+), 11 deletions(-)

diff --git a/docs/schemas/cputypes.rng b/docs/schemas/cputypes.rng
index 88f6904343..aea6ff0267 100644
--- a/docs/schemas/cputypes.rng
+++ b/docs/schemas/cputypes.rng
@@ -336,17 +336,19 @@
             </attribute>
           </element>
         </optional>
-        <element name="topology">
-          <attribute name="sockets">
-            <ref name="positiveInteger"/>
-          </attribute>
-          <attribute name="cores">
-            <ref name="positiveInteger"/>
-          </attribute>
-          <attribute name="threads">
-            <ref name="positiveInteger"/>
-          </attribute>
-        </element>
+        <optional>
+          <element name="topology">
+            <attribute name="sockets">
+              <ref name="positiveInteger"/>
+            </attribute>
+            <attribute name="cores">
+              <ref name="positiveInteger"/>
+            </attribute>
+            <attribute name="threads">
+              <ref name="positiveInteger"/>
+            </attribute>
+          </element>
+        </optional>
         <zeroOrMore>
           <element name="feature">
             <attribute name="name">
-- 
2.26.2




[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