[PATCH 5/5] qemu: Add support for emulatorsched

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This helps in a scenarios where vCPUs run with a priority that is so high they
might starve the emulator thread.  And it also fits with the rest of the
settings.

Signed-off-by: Martin Kletzander <mkletzan@xxxxxxxxxx>
---
 docs/news.xml           | 12 ++++++++++++
 src/qemu/qemu_process.c |  2 +-
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/docs/news.xml b/docs/news.xml
index 86c77346940a..84de507b0e9a 100644
--- a/docs/news.xml
+++ b/docs/news.xml
@@ -35,6 +35,18 @@
 <libvirt>
   <release version="v5.3.0" date="unreleased">
     <section title="New features">
+      <change>
+        <summary>
+          qemu: Add support for setting the emulator scheduler parameters
+        </summary>
+        <description>
+          I/O threads and vCPU threads already support setting schedulers, but
+          until now it was impossible to do so for the main QEMU thread
+          (emulator thread in the libvirt naming).  This is, however, requested
+          for some very specific scenarios, for example when vCPU threads are
+          running at such priority that could starve the main thread.
+        </description>
+      </change>
     </section>
     <section title="Improvements">
       <change>
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index f773aa89b78d..55f4074ea146 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -2683,7 +2683,7 @@ qemuProcessSetupEmulator(virDomainObjPtr vm)
                                0, vm->def->cputune.emulatorpin,
                                vm->def->cputune.emulator_period,
                                vm->def->cputune.emulator_quota,
-                               NULL);
+                               vm->def->cputune.emulatorsched);
 }
 
 
-- 
2.21.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux