mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user