vmm: Remove deprecated CPU syntax

Remove the old way of specifying the number of vCPUs to use.

Fixes: #678

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-02-21 16:08:25 +00:00 committed by Samuel Ortiz
parent 374ac77c63
commit bba5ef3a59

View File

@ -201,13 +201,6 @@ pub struct CpusConfig {
impl CpusConfig {
pub fn parse(cpus: &str) -> Result<Self> {
if let Ok(legacy_vcpu_count) = cpus.parse::<u8>() {
error!("Using deprecated vCPU syntax. Use --cpus boot=<boot_vcpus>[,max=<max_vcpus]");
Ok(CpusConfig {
boot_vcpus: legacy_vcpu_count,
max_vcpus: legacy_vcpu_count,
})
} else {
// Split the parameters based on the comma delimiter
let params_list: Vec<&str> = cpus.split(',').collect();
@ -240,7 +233,6 @@ impl CpusConfig {
max_vcpus,
})
}
}
}
impl Default for CpusConfig {