[libvirt] [PATCH 3/3] qemu: Add support for setting vCPU and I/O thread scheduler setting

Martin Kletzander mkletzan at redhat.com
Tue Jan 13 14:39:30 UTC 2015


On Tue, Jan 13, 2015 at 08:57:04AM +0100, Martin Kletzander wrote:
>Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1178986
>
>Signed-off-by: Martin Kletzander <mkletzan at redhat.com>
>---
> src/qemu/qemu_driver.c  |  7 ++++-
> src/qemu/qemu_process.c | 76 ++++++++++++++++++++++++++++++++++++++++++++++++-
> src/qemu/qemu_process.h |  5 +++-
> 3 files changed, 85 insertions(+), 3 deletions(-)
>

Ehm, consider the following diff squashed in O:-)

diff --git i/src/qemu/qemu_process.c w/src/qemu/qemu_process.c
index 0d69c43..1702474 100644
--- i/src/qemu/qemu_process.c
+++ w/src/qemu/qemu_process.c
@@ -2627,14 +2627,14 @@ qemuProcessSetSchedulers(virDomainObjPtr vm)
     qemuDomainObjPrivatePtr priv = vm->privateData;
          size_t i = 0;

-    for (i = 0; i < vm->def->vcpus; i++) {
+    for (i = 0; i < priv->nvcpupids; i++) {
         if (qemuProcessSetSchedParams(i, priv->vcpupids[i],
                                       vm->def->cputune.nvcpusched,
                                       vm->def->cputune.vcpusched) < 0)
             return -1;
     }

-    for (i = 0; i < vm->def->iothreads; i++) {
+    for (i = 0; i < priv->niothreadpids; i++) {
         if (qemuProcessSetSchedParams(i, priv->iothreadpids[i],
                                       vm->def->cputune.niothreadsched,
                                       vm->def->cputune.iothreadsched) < 0)
--
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150113/29e898d2/attachment-0001.sig>


More information about the libvir-list mailing list