[Libosinfo] [osinfo-db PATCH v2 01/12] schema: Add support to Guest Features

Fabiano Fidêncio fidencio at redhat.com
Fri Jan 11 14:48:20 UTC 2019


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:
- acpi
- apic
- cpu-hotplug
- numa
- pci-device-hotplug

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 data/schema/osinfo.rng.in | 27 +++++++++++++++++++++++++++
 1 file changed, 27 insertions(+)

diff --git a/data/schema/osinfo.rng.in b/data/schema/osinfo.rng.in
index 3a42ac8..0a62fda 100644
--- a/data/schema/osinfo.rng.in
+++ b/data/schema/osinfo.rng.in
@@ -567,6 +567,30 @@
     </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>acpi</value>
+            <value>apic</value>
+            <value>cpu-hotplug</value>
+            <value>numa</value>
+            <value>pci-device-hotplug</value>
+          </choice>
+          <optional>
+            <attribute name='supported'>
+              <ref name='bool'/>
+            </attribute>
+          </optional>
+        </element>
+      </oneOrMore>
+    </element>
+  </define>
+
   <define name='os'>
     <element name='os'>
       <interleave>
@@ -601,6 +625,9 @@
         <zeroOrMore>
           <ref name='driver'/>
         </zeroOrMore>
+        <zeroOrMore>
+          <ref name='features-rel'/>
+        </zeroOrMore>
       </interleave>
     </element>
   </define>
-- 
2.19.2




More information about the Libosinfo mailing list