]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
schema: Make element "topology" in host CPU definition optional
authorTim Wiederhake <twiederh@redhat.com>
Wed, 7 Oct 2020 08:54:54 +0000 (10:54 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 8 Oct 2020 08:15:31 +0000 (10:15 +0200)
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@redhat.com>
Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
docs/schemas/cputypes.rng

index 88f69043435ec143f6c8d320006befa3a2b76b8f..aea6ff0267af6b815df6711beb388f9f5d0461a2 100644 (file)
             </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">