mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
misc: vmm: drop extern crate, use modern rust
This commit is part of a series of similar commits. Signed-off-by: Philipp Schuster <philipp.schuster@cyberus-technology.de> On-behalf-of: SAP philipp.schuster@sap.com
This commit is contained in:
committed by
Rob Bradford
parent
2157f1a1f2
commit
67fc9d990e
@@ -10,6 +10,7 @@ use std::thread;
|
||||
use futures::channel::oneshot;
|
||||
use futures::{FutureExt, executor};
|
||||
use hypervisor::HypervisorType;
|
||||
use log::{error, warn};
|
||||
use seccompiler::{SeccompAction, apply_filter};
|
||||
use vmm_sys_util::eventfd::EventFd;
|
||||
use zbus::connection::Builder;
|
||||
|
||||
@@ -73,6 +73,8 @@ mod fds_helper {
|
||||
use std::fs::File;
|
||||
use std::os::fd::{IntoRawFd, RawFd};
|
||||
|
||||
use log::{debug, error, warn};
|
||||
|
||||
use crate::api::http::HttpError;
|
||||
|
||||
/// Abstraction over configuration types received via the HTTP API that
|
||||
@@ -172,7 +174,7 @@ mod fds_helper {
|
||||
|
||||
if fds_amount > 0 {
|
||||
let new_fds = fds.drain(..fds_amount).collect::<Vec<_>>();
|
||||
log::debug!(
|
||||
debug!(
|
||||
"Attaching network FDs received via UNIX domain socket to device: id={:?}, fds={new_fds:?}",
|
||||
cfg.id()
|
||||
);
|
||||
|
||||
@@ -15,6 +15,7 @@ use std::sync::mpsc::Sender;
|
||||
use std::thread;
|
||||
|
||||
use hypervisor::HypervisorType;
|
||||
use log::error;
|
||||
use micro_http::{
|
||||
Body, HttpServer, MediaType, Method, Request, Response, ServerError, StatusCode, Version,
|
||||
};
|
||||
|
||||
@@ -36,6 +36,7 @@ pub mod http;
|
||||
use std::io;
|
||||
use std::sync::mpsc::{RecvError, SendError, Sender, channel};
|
||||
|
||||
use log::info;
|
||||
use micro_http::Body;
|
||||
use serde::{Deserialize, Serialize};
|
||||
use thiserror::Error;
|
||||
|
||||
Reference in New Issue
Block a user