[Libosinfo] [osinfo-db PATCH 01/31] schema: Add support to Guest Features
Fabiano Fidêncio
fidencio at redhat.com
Fri Nov 23 10:14:50 UTC 2018
Let's add support to have the list of features supported by OS. It's
quite important to note here that the feature being supported doesn't
mean it'll automatically work out of the box as it may depend on also
having whether QEMU or kernel have the right configuration.
The features supported by now are:
- cpu-hotplug
- pci-device-hotplug
- numa
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
data/schema/osinfo.rng.in | 25 +++++++++++++++++++++++++
1 file changed, 25 insertions(+)
diff --git a/data/schema/osinfo.rng.in b/data/schema/osinfo.rng.in
index 22c39d6..260f661 100644
--- a/data/schema/osinfo.rng.in
+++ b/data/schema/osinfo.rng.in
@@ -533,6 +533,28 @@
</element>
</define>
+ <!-- Those features mean that the OS is capable of supporting it.
+ It does *not* mean that its guaranteed to work as the features
+ may depend having them enabled on QEMU/kernel side. -->
+ <define name='features-rel'>
+ <element name='features'>
+ <oneOrMore>
+ <element name='feature'>
+ <choice>
+ <value>cpu-hotplug</value>
+ <value>pci-device-hotplug</value>
+ <value>numa</value>
+ </choice>
+ <optional>
+ <attribute name='supported'>
+ <ref name='bool'/>
+ </attribute>
+ </optional>
+ </element>
+ </oneOrMore>
+ </element>
+ </define>
+
<define name='os'>
<element name='os'>
<interleave>
@@ -564,6 +586,9 @@
<zeroOrMore>
<ref name='driver'/>
</zeroOrMore>
+ <zeroOrMore>
+ <ref name='features-rel'/>
+ </zeroOrMore>
</interleave>
</element>
</define>
--
2.19.1
More information about the Libosinfo
mailing list