mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
cloud-hypervisor: Add the --cpus option
You guessed it: To specify the number of vcpus. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
@@ -168,9 +168,10 @@ pub struct VmConfig<'a> {
|
||||
}
|
||||
|
||||
impl<'a> VmConfig<'a> {
|
||||
pub fn new(kernel_path: &'a Path) -> Result<Self> {
|
||||
pub fn new(kernel_path: &'a Path, vcpus: u8) -> Result<Self> {
|
||||
Ok(VmConfig {
|
||||
kernel_path,
|
||||
vcpu_count: vcpus,
|
||||
..Default::default()
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user