]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
schemas: Deduplicate cpuTopology in cputypes.rng
authorTim Wiederhake <twiederh@redhat.com>
Tue, 15 Dec 2020 12:16:47 +0000 (13:16 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 18 Dec 2020 16:46:41 +0000 (17:46 +0100)
The duplicate had the "dies" attribute missing, causing
  $ virsh capabilities > cap.xml
  $ virsh [hypervisor-]cpu-compare cap.xml --validate
to fail with
  error: Failed to compare hypervisor CPU with cap.xml
  error: XML document failed to validate against schema: Unable to validate doc against /usr/share/libvirt/schemas/cpu.rng
  Invalid attribute dies for element topology

Signed-off-by: Tim Wiederhake <twiederh@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
docs/schemas/cputypes.rng

index aea6ff0267af6b815df6711beb388f9f5d0461a2..c4e762165964a3ef9a525148d3fde43f4b682625 100644 (file)
           </element>
         </optional>
         <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>
+          <ref name="cpuTopology"/>
         </optional>
         <zeroOrMore>
           <element name="feature">