[Libosinfo] [osinfo-db PATCH 2/3] workload: Example of restricted high-perf

Martin Kletzander mkletzan at redhat.com
Sat Nov 17 00:06:12 UTC 2018


This example is taken from oVirt's high performance VM:

  https://www.ovirt.org/develop/release-management/features/virt/high-performance-vm/

The idea behind it is that all unnecessary devices are removed, here only usb
controllers and video devices are removed, see URL above for more devices to be
removed.

Ideally this should also require serial port, but that can be derived from a
headless VM (similarly to oVirt).

Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
---
 .../example.com/super-high-perf.xml.in        | 39 +++++++++++++++++++
 1 file changed, 39 insertions(+)
 create mode 100644 data/workload/example.com/super-high-perf.xml.in

diff --git a/data/workload/example.com/super-high-perf.xml.in b/data/workload/example.com/super-high-perf.xml.in
new file mode 100644
index 000000000000..099d8b63d820
--- /dev/null
+++ b/data/workload/example.com/super-high-perf.xml.in
@@ -0,0 +1,39 @@
+<libosinfo version="0.0.1">
+<!-- Licensed under the GNU General Public License version 2 or later.
+     See http://www.gnu.org/licenses/ for a copy of the license text -->
+  <workload id="http://example.com/high-perf">
+    <short-id>super-high-perf</short-id>
+    <_name>Super High Performance</_name>
+    <derive-from id="http://example.com/high-perf"/>
+  </workload>
+
+  <features>
+    <remove>usb-controllers</remove> <!-- device class? -->
+    <remove>video</remove>
+  </features>
+    <!--
+        or just
+        <devices>
+          <device id="http://usb.org/*" removed="true"/>
+        </devices>
+
+        after which the application might be intelligent enough to just not put
+        the controller there.  It's not going to work with video devices
+        because.
+    -->
+
+  <non-migratable>
+    <features>
+      <cache>passthrough</cache>
+    </features>
+    <cpu>
+      <model>host-passthrough</model>
+    </cpu>
+  </non-migratable>
+  <!--
+      this is an idea for having the information of "passthrough everything for
+      high-perf, but you won't be able to migrate" put in the data.  But I don't
+      really think this is needed.  But getting a feedback might prove me
+      otherwise.
+  -->
+</libosinfo>
-- 
2.19.1




More information about the Libosinfo mailing list