[libvirt PATCH 1/2] schemas: Deduplicate cpuTopology in cputypes.rng

Tim Wiederhake twiederh at redhat.com
Tue Dec 15 12:16:47 UTC 2020


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 at redhat.com>
---
 docs/schemas/cputypes.rng | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/docs/schemas/cputypes.rng b/docs/schemas/cputypes.rng
index aea6ff0267..c4e7621659 100644
--- a/docs/schemas/cputypes.rng
+++ b/docs/schemas/cputypes.rng
@@ -337,17 +337,7 @@
           </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">
-- 
2.26.2




More information about the libvir-list mailing list