qemu: setvcpus: Save config changes to disk

Currently changes to the persistent config aren't flushed to disk, meaning
they are lost if the domain is redefined or libvirtd is restarted.
This commit is contained in:
Cole Robinson 2010-11-22 14:07:02 -05:00
parent 39b6265476
commit 388fa6257e

View File

@ -6367,6 +6367,10 @@ qemudDomainSetVcpusFlags(virDomainPtr dom, unsigned int nvcpus,
break;
}
/* Save the persistent config to disk */
if (flags & VIR_DOMAIN_VCPU_CONFIG)
ret = virDomainSaveConfig(driver->configDir, persistentDef);
endjob:
if (qemuDomainObjEndJob(vm) == 0)
vm = NULL;