mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Add smbios element to schema and configuration to HVM os
the element has a mode attribute allowing only 3 values: - emulate: use the smbios emulation from the hypervisor - host: try to use the smbios values from the node - sysinfo: grab the values from the <sysinfo> fields * docs/schemas/domain.rng: extend the schemas * src/conf/domain_conf.h: add the flag to the domain config * src/conf/domain_conf.h: parse and serialize the smbios if present
This commit is contained in:
@@ -135,6 +135,9 @@
|
||||
</attribute>
|
||||
</element>
|
||||
</optional>
|
||||
<optional>
|
||||
<ref name="smbios"/>
|
||||
</optional>
|
||||
</interleave>
|
||||
</element>
|
||||
</define>
|
||||
@@ -1819,6 +1822,19 @@
|
||||
</data>
|
||||
</define>
|
||||
|
||||
<define name="smbios">
|
||||
<element name="smbios">
|
||||
<attribute name="mode">
|
||||
<choice>
|
||||
<value>emulate</value>
|
||||
<value>host</value>
|
||||
<value>sysinfo</value>
|
||||
</choice>
|
||||
</attribute>
|
||||
<empty/>
|
||||
</element>
|
||||
</define>
|
||||
|
||||
<define name="address">
|
||||
<element name="address">
|
||||
<choice>
|
||||
|
||||
Reference in New Issue
Block a user