From f7c215d92d3a2ea93ef2567f4dd5ee816e41394e Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Tue, 10 Dec 2019 13:42:51 +0100 Subject: [PATCH] cli: Fix default CPU argument By default, and in order to avoid falling into the legacy CLI usage, the CPU argument should at least include "boot=" to define the number of CPUs. Signed-off-by: Sebastien Boeuf --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index fdf51cdb6..3db8bfc34 100755 --- a/src/main.rs +++ b/src/main.rs @@ -79,7 +79,7 @@ fn main() { } } - let default_vcpus = format! {"{}", config::DEFAULT_VCPUS}; + let default_vcpus = format! {"boot={}", config::DEFAULT_VCPUS}; let default_memory = format! {"size={}M", config::DEFAULT_MEMORY_MB}; let default_rng = format! {"src={}", config::DEFAULT_RNG_SOURCE};