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.
This commit is contained in:
Eric Blake 2012-02-07 17:38:41 -07:00
parent b0bfbd82d1
commit c8c239a439

View File

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