mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-23 16:31:16 +00:00
vmm: Update the configuration to preserve hot-plug CPUs after reboot
Update the configuration after a resize to ensure that after a reboot the added vCPUs are preserved. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
1722708612
commit
f98b16f308
@ -676,6 +676,7 @@ impl Vm {
|
|||||||
self.devices
|
self.devices
|
||||||
.notify_hotplug(HotPlugNotificationType::CPUDevicesChanged)
|
.notify_hotplug(HotPlugNotificationType::CPUDevicesChanged)
|
||||||
.map_err(Error::DeviceManager)?;
|
.map_err(Error::DeviceManager)?;
|
||||||
|
self.config.lock().unwrap().cpus.boot_vcpus = desired_vcpus;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user