From b344d2ae274f4af4ac2ed3619f954b6ae7557472 Mon Sep 17 00:00:00 2001 From: Liu Jiang Date: Tue, 23 Nov 2021 10:39:09 +0800 Subject: [PATCH] ioctls: export submodule ioctls Export submodule ioctls as mshv_ioctls, which is needed by the vfio-ioctls crate. Signed-off-by: Liu Jiang --- src/ioctls/mod.rs | 2 ++ src/lib.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ioctls/mod.rs b/src/ioctls/mod.rs index 855aba1c..d7a0a7d0 100644 --- a/src/ioctls/mod.rs +++ b/src/ioctls/mod.rs @@ -5,6 +5,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the THIRD-PARTY file. +//! Safe wrapper for KVM IOCTLs. + use std::os::unix::io::AsRawFd; use std::ptr::null_mut; diff --git a/src/lib.rs b/src/lib.rs index 472eef8a..c5bbf64f 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -210,7 +210,7 @@ extern crate vmm_sys_util; #[macro_use] mod kvm_ioctls; mod cap; -mod ioctls; +pub mod ioctls; pub use cap::Cap; pub use ioctls::device::DeviceFd;