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(a)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)
--