From: Ján Tomko Date: Wed, 23 Apr 2014 10:43:24 +0000 (+0200) Subject: Save domain status after cpu hotplug X-Git-Tag: v1.2.4-rc1~78 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b396e602c97ab69c86dfd84d2f9e48b4c04a48a4;p=thirdparty%2Flibvirt.git Save domain status after cpu hotplug 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 --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index c3ac6d4d82..11cb86d200 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) {