|
|
9119d9 |
From 94419872a0976a5afff35fd9bce4117294a3c8c2 Mon Sep 17 00:00:00 2001
|
|
|
9119d9 |
Message-Id: <94419872a0976a5afff35fd9bce4117294a3c8c2@dist-git>
|
|
|
9119d9 |
From: Pavel Hrdina <phrdina@redhat.com>
|
|
|
9119d9 |
Date: Thu, 25 Sep 2014 13:25:37 +0200
|
|
|
9119d9 |
Subject: [PATCH] blkdeviotune: fix bug with saving values into live XML
|
|
|
9119d9 |
|
|
|
9119d9 |
When you updated some blkdeviotune values for running domain the values
|
|
|
9119d9 |
were stored only internally, but not saved into the live XML so they
|
|
|
9119d9 |
won't survive restarting the libvirtd.
|
|
|
9119d9 |
|
|
|
9119d9 |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
9119d9 |
(cherry picked from commit 783fe9ca8c5d1a831d5626c4835a8d3284456d9c)
|
|
|
9119d9 |
|
|
|
9119d9 |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1146511
|
|
|
9119d9 |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
|
9119d9 |
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
|
|
|
9119d9 |
---
|
|
|
9119d9 |
src/qemu/qemu_driver.c | 7 +++++++
|
|
|
9119d9 |
1 file changed, 7 insertions(+)
|
|
|
9119d9 |
|
|
|
9119d9 |
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
|
|
|
9119d9 |
index 8f655e5..808d35f 100644
|
|
|
9119d9 |
--- a/src/qemu/qemu_driver.c
|
|
|
9119d9 |
+++ b/src/qemu/qemu_driver.c
|
|
|
9119d9 |
@@ -16107,6 +16107,13 @@ qemuDomainSetBlockIoTune(virDomainPtr dom,
|
|
|
9119d9 |
if (ret < 0)
|
|
|
9119d9 |
goto endjob;
|
|
|
9119d9 |
vm->def->disks[idx]->blkdeviotune = info;
|
|
|
9119d9 |
+
|
|
|
9119d9 |
+ ret = virDomainSaveStatus(driver->xmlopt, cfg->stateDir, vm);
|
|
|
9119d9 |
+ if (ret < 0) {
|
|
|
9119d9 |
+ virReportError(VIR_ERR_OPERATION_FAILED, "%s",
|
|
|
9119d9 |
+ _("Saving live XML config failed"));
|
|
|
9119d9 |
+ goto endjob;
|
|
|
9119d9 |
+ }
|
|
|
9119d9 |
}
|
|
|
9119d9 |
|
|
|
9119d9 |
if (flags & VIR_DOMAIN_AFFECT_CONFIG) {
|
|
|
9119d9 |
--
|
|
|
9119d9 |
2.1.1
|
|
|
9119d9 |
|