From f98b16f308435c36107180377732e8df29443bee Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Wed, 4 Dec 2019 13:58:10 +0000 Subject: [PATCH] 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 --- vmm/src/vm.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/vmm/src/vm.rs b/vmm/src/vm.rs index a89de5bbc..542754582 100755 --- a/vmm/src/vm.rs +++ b/vmm/src/vm.rs @@ -676,6 +676,7 @@ impl Vm { self.devices .notify_hotplug(HotPlugNotificationType::CPUDevicesChanged) .map_err(Error::DeviceManager)?; + self.config.lock().unwrap().cpus.boot_vcpus = desired_vcpus; Ok(()) }