schema: Make element "topology" in host CPU definition optional

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>
This commit is contained in:
Tim Wiederhake 2020-10-07 10:54:54 +02:00 committed by Jiri Denemark
parent 03df87ce0d
commit 94bac7c866

View File

@ -336,17 +336,19 @@
</attribute> </attribute>
</element> </element>
</optional> </optional>
<element name="topology"> <optional>
<attribute name="sockets"> <element name="topology">
<ref name="positiveInteger"/> <attribute name="sockets">
</attribute> <ref name="positiveInteger"/>
<attribute name="cores"> </attribute>
<ref name="positiveInteger"/> <attribute name="cores">
</attribute> <ref name="positiveInteger"/>
<attribute name="threads"> </attribute>
<ref name="positiveInteger"/> <attribute name="threads">
</attribute> <ref name="positiveInteger"/>
</element> </attribute>
</element>
</optional>
<zeroOrMore> <zeroOrMore>
<element name="feature"> <element name="feature">
<attribute name="name"> <attribute name="name">