mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-02-07 12:17:21 +00:00
bin: switch to hypervisor::new
Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
parent
a83bd97e0d
commit
085d165f8a
@ -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…
x
Reference in New Issue
Block a user