mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
virSysinfo: Introduce SMBIOS type 2 support
https://bugzilla.redhat.com/show_bug.cgi?id=1220527 This type of information defines attributes of a system baseboard. With one exception: board type is yet not implemented in qemu so it's not introduced here either. Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
@@ -4249,6 +4249,18 @@
|
||||
</oneOrMore>
|
||||
</element>
|
||||
</optional>
|
||||
<zeroOrMore>
|
||||
<element name="baseBoard">
|
||||
<oneOrMore>
|
||||
<element name="entry">
|
||||
<attribute name="name">
|
||||
<ref name="sysinfo-baseBoard-name"/>
|
||||
</attribute>
|
||||
<ref name="sysinfo-value"/>
|
||||
</element>
|
||||
</oneOrMore>
|
||||
</element>
|
||||
</zeroOrMore>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
@@ -4274,6 +4286,17 @@
|
||||
</choice>
|
||||
</define>
|
||||
|
||||
<define name="sysinfo-baseBoard-name">
|
||||
<choice>
|
||||
<value>manufacturer</value>
|
||||
<value>product</value>
|
||||
<value>version</value>
|
||||
<value>serial</value>
|
||||
<value>asset</value>
|
||||
<value>location</value>
|
||||
</choice>
|
||||
</define>
|
||||
|
||||
<define name="sysinfo-value">
|
||||
<data type="string">
|
||||
<param name='pattern'>[a-zA-Z0-9/\-_\. \(\)]+</param>
|
||||
|
||||
Reference in New Issue
Block a user