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:
Daniel Veillard
2010-11-05 14:10:34 +01:00
parent ebb7a0ddc4
commit d528b52ff9
3 changed files with 59 additions and 0 deletions

View File

@@ -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>