bin: switch to hypervisor::new
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
a83bd97e0d
commit
085d165f8a
1 changed files with 2 additions and 3 deletions
|
|
@ -10,7 +10,6 @@ extern crate vmm_sys_util;
|
|||
extern crate clap;
|
||||
|
||||
use clap::{App, Arg, ArgGroup, ArgMatches};
|
||||
use hypervisor::kvm::KvmHypervisor as Hypervisor;
|
||||
use libc::EFD_NONBLOCK;
|
||||
use log::LevelFilter;
|
||||
use seccomp::SeccompLevel;
|
||||
|
|
@ -302,7 +301,7 @@ fn start_vmm(cmd_arguments: ArgMatches) {
|
|||
} else {
|
||||
SeccompLevel::Advanced
|
||||
};
|
||||
let hypervisor = Hypervisor::new().unwrap();
|
||||
let hypervisor = hypervisor::new().unwrap();
|
||||
let vmm_thread = match vmm::start_vmm_thread(
|
||||
env!("CARGO_PKG_VERSION").to_string(),
|
||||
api_socket_path,
|
||||
|
|
@ -310,7 +309,7 @@ fn start_vmm(cmd_arguments: ArgMatches) {
|
|||
http_sender,
|
||||
api_request_receiver,
|
||||
&seccomp_level,
|
||||
Arc::new(hypervisor),
|
||||
hypervisor,
|
||||
) {
|
||||
Ok(t) => t,
|
||||
Err(e) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue