bin: switch to hypervisor::new
@@ -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) => {
