diff --git a/src/hyperlight_host/src/sandbox/hypervisor.rs b/src/hyperlight_host/src/sandbox/hypervisor.rs index bf205adaa..c0aadfe61 100644 --- a/src/hyperlight_host/src/sandbox/hypervisor.rs +++ b/src/hyperlight_host/src/sandbox/hypervisor.rs @@ -21,6 +21,7 @@ use std::sync::OnceLock; use crate::hypervisor::virtual_machine::kvm; #[cfg(mshv3)] use crate::hypervisor::virtual_machine::mshv; +use crate::hypervisor::virtual_machine::HypervisorType; static AVAILABLE_HYPERVISOR: OnceLock> = OnceLock::new(); @@ -65,19 +66,6 @@ pub fn get_available_hypervisor() -> &'static Option { }) } -/// The hypervisor types available for the current platform -#[derive(PartialEq, Eq, Debug)] -pub(crate) enum HypervisorType { - #[cfg(kvm)] - Kvm, - - #[cfg(mshv3)] - Mshv, - - #[cfg(target_os = "windows")] - Whp, -} - // Compiler error if no hypervisor type is available #[cfg(not(any(kvm, mshv3, target_os = "windows")))] compile_error!(