From 783fe9ca8c5d1a831d5626c4835a8d3284456d9c Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Thu, 25 Sep 2014 11:28:25 +0200 Subject: [PATCH] blkdeviotune: fix bug with saving values into live XML When you updated some blkdeviotune values for running domain the values were stored only internally, but not saved into the live XML so they won't survive restarting the libvirtd. Signed-off-by: Pavel Hrdina --- src/qemu/qemu_driver.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 4afd066205..efce382107 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -16406,6 +16406,13 @@ qemuDomainSetBlockIoTune(virDomainPtr dom, if (ret < 0) goto endjob; vm->def->disks[idx]->blkdeviotune = info; + + ret = virDomainSaveStatus(driver->xmlopt, cfg->stateDir, vm); + if (ret < 0) { + virReportError(VIR_ERR_OPERATION_FAILED, "%s", + _("Saving live XML config failed")); + goto endjob; + } } if (flags & VIR_DOMAIN_AFFECT_CONFIG) { -- GitLab