diff options
author | 2012-02-07 17:38:41 -0700 | |
---|---|---|
committer | 2012-02-08 16:53:39 -0700 | |
commit | c8c239a439dca7600cd52066966c1c59a838e167 (patch) | |
tree | a279d146a9c1730147bbe0916284aadec9485ed2 | |
parent | qemu: make blkiodevice weights easier to read (diff) | |
download | libvirt-c8c239a439dca7600cd52066966c1c59a838e167.tar.gz libvirt-c8c239a439dca7600cd52066966c1c59a838e167.tar.bz2 libvirt-c8c239a439dca7600cd52066966c1c59a838e167.zip |
qemu: fix persistent setting of blkiodevice weights
virsh blkiotune dom --device-weights /dev/sda,400 --config
wasn't working correctly.
* src/qemu/qemu_driver.c (qemuDomainSetBlkioParameters): Use
correct definition.
-rw-r--r-- | src/qemu/qemu_driver.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 9abbac993..45c4100c4 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -6148,8 +6148,8 @@ qemuDomainSetBlkioParameters(virDomainPtr dom, ret = -1; continue; } - if (qemuDomainMergeDeviceWeights(&vm->def->blkio.devices, - &vm->def->blkio.ndevices, + if (qemuDomainMergeDeviceWeights(&persistentDef->blkio.devices, + &persistentDef->blkio.ndevices, devices, ndevices) < 0) ret = -1; virBlkioDeviceWeightArrayClear(devices, ndevices); |