mirror of https://gitee.com/openkylin/libvirt.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
This commit is contained in:
parent
fa8a389ebb
commit
b396e602c9
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue