diff --git a/hypervisor/src/hypervisor.rs b/hypervisor/src/hypervisor.rs index aea750e48..48ea62348 100644 --- a/hypervisor/src/hypervisor.rs +++ b/hypervisor/src/hypervisor.rs @@ -72,12 +72,13 @@ pub trait Hypervisor: Send + Sync { /// Return a hypervisor-agnostic Vm trait object /// fn create_vm(&self) -> Result>; - #[cfg(feature = "kvm")] /// /// Create a Vm of a specific type using the underlying hypervisor /// Return a hypervisor-agnostic Vm trait object /// - fn create_vm_with_type(&self, vm_type: u64) -> Result>; + fn create_vm_with_type(&self, _vm_type: u64) -> Result> { + unreachable!() + } #[cfg(target_arch = "x86_64")] /// /// Get the supported CpuID