From 4a1eab11b48120065b444944107b4d573b31dd2d Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Thu, 14 Jul 2022 10:05:30 +0000 Subject: [PATCH] hypervisor: do not export VcpuExit It is not used anywhere outside of the hypervisor crate. Signed-off-by: Dev Rajput Signed-off-by: Wei Liu --- hypervisor/src/lib.rs | 4 ++-- hypervisor/src/mshv/x86_64/mod.rs | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/hypervisor/src/lib.rs b/hypervisor/src/lib.rs index 9602fac20..28f85bda1 100644 --- a/hypervisor/src/lib.rs +++ b/hypervisor/src/lib.rs @@ -61,7 +61,7 @@ pub use kvm::{aarch64, GicState}; #[cfg(feature = "kvm")] pub use kvm::{ ClockData, CpuState, CreateDevice, DeviceAttr, DeviceFd, IoEventAddress, IrqRoutingEntry, - MpState, VcpuEvents, VcpuExit, VmState, + MpState, VcpuEvents, VmState, }; #[cfg(all(feature = "mshv", target_arch = "x86_64"))] pub use mshv::x86_64; @@ -69,7 +69,7 @@ pub use mshv::x86_64; #[cfg(all(feature = "mshv", target_arch = "x86_64"))] pub use mshv::{ CpuState, CreateDevice, DeviceAttr, DeviceFd, IoEventAddress, IrqRoutingEntry, MpState, - VcpuEvents, VcpuExit, VmState, + VcpuEvents, VmState, }; use std::sync::Arc; pub use vm::{ diff --git a/hypervisor/src/mshv/x86_64/mod.rs b/hypervisor/src/mshv/x86_64/mod.rs index 04bad672a..76e3dccf8 100644 --- a/hypervisor/src/mshv/x86_64/mod.rs +++ b/hypervisor/src/mshv/x86_64/mod.rs @@ -67,7 +67,6 @@ impl fmt::Display for VcpuMshvState { } pub struct IrqRouting {} -pub enum VcpuExit {} pub struct MpState {} impl SegmentRegisterOps for SegmentRegister {