mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
No sane guest OS will allow hotplugging all cpus. However, the REST API currently allows specifying `ch-remote resize --cpus 0`. On Linux, we can then observe the following error in the kernel log: processor cpu0: Offline failed. Subsequent resize commands via ch-remote will then fail with VcpuPendingRemovedVcpu because the removal of cpu0 was never successful. Fix this by disallowing resizing to zero vCPUs. Signed-off-by: Thomas Prescher <thomas.prescher@cyberus-technology.de> On-behalf-of: SAP thomas.prescher@sap.com