On 04/23/2014 05:08 AM, Ján Tomko wrote:
The live change of vcpus was not reflected in the domain status
xml and it got lost during libvirtd restart.
https://bugzilla.redhat.com/show_bug.cgi?id=1088703
---
src/qemu/qemu_driver.c | 3 +++
1 file changed, 3 insertions(+)
ACK
diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c
index c3ac6d4..11cb86d 100644
--- a/src/qemu/qemu_driver.c
+++ b/src/qemu/qemu_driver.c
@@ -4273,6 +4273,9 @@ qemuDomainSetVcpusFlags(virDomainPtr dom, unsigned int nvcpus,
if (flags & VIR_DOMAIN_AFFECT_LIVE) {
if (qemuDomainHotplugVcpus(driver, vm, nvcpus) < 0)
goto endjob;
+
+ if (virDomainSaveStatus(driver->xmlopt, cfg->stateDir, vm) < 0)
+ goto endjob;
}
if (flags & VIR_DOMAIN_AFFECT_CONFIG) {
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library
http://libvirt.org