vmm: Simplify some of the io_uring code

Small patch creating a dedicated `block_io_uring_is_supported()`
function for the non-io_uring case, so that we can simplify the
code in the DeviceManager.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2020-10-07 11:23:20 +02:00
parent ac32b1e35f
commit 1e3a6cb450
3 changed files with 33 additions and 59 deletions

View File

@@ -31,7 +31,6 @@ use std::io;
mod device;
pub mod balloon;
pub mod block;
#[cfg(feature = "io_uring")]
pub mod block_io_uring;
mod console;
pub mod epoll_helper;
@@ -48,7 +47,6 @@ pub mod vsock;
pub use self::balloon::*;
pub use self::block::*;
#[cfg(feature = "io_uring")]
pub use self::block_io_uring::*;
pub use self::console::*;
pub use self::device::*;