]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Save domain status after cpu hotplug
authorJán Tomko <jtomko@redhat.com>
Wed, 23 Apr 2014 10:43:24 +0000 (12:43 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 23 Apr 2014 12:24:21 +0000 (14:24 +0200)
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

index c3ac6d4d82e3c40d5ca7c257081125efa04baeac..11cb86d2007af7539e040d94658e017164faf3d0 100644 (file)
@@ -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) {