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

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

 



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@xxxxxxxxxx>
---
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)
--

Attachment: pgpzY8BP6xdI7.pgp
Description: PGP signature

--
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]