mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user