vmm: Add boot and max vCPU handling to command line parser

Also retain support (with a warning for the old behaviour.)

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2019-11-25 14:18:03 +00:00
parent 7543e00a07
commit 82bc07cce4
3 changed files with 52 additions and 9 deletions

View File

@@ -450,8 +450,8 @@ impl Vm {
let on_tty = unsafe { libc::isatty(libc::STDIN_FILENO as i32) } != 0;
let boot_vcpus = config.cpus.cpu_count;
let max_vcpus = config.cpus.cpu_count;
let boot_vcpus = config.cpus.boot_vcpus;
let max_vcpus = config.cpus.max_vcpus;
let cpu_manager = cpu::CpuManager::new(
boot_vcpus,
max_vcpus,