diff --git a/mshv-ioctls/src/ioctls/system.rs b/mshv-ioctls/src/ioctls/system.rs index 976e5df7..7e5c5931 100644 --- a/mshv-ioctls/src/ioctls/system.rs +++ b/mshv-ioctls/src/ioctls/system.rs @@ -299,19 +299,6 @@ impl Mshv { self.create_vm_with_type(VmType::Normal) } - /// Check if MSHV API is stable - pub fn check_stable(&self) -> Result { - // Safe because we know `self.hv` is a real MSHV fd as this module is the only one that - // creates mshv objects. - let cap: u32 = MSHV_CAP_CORE_API_STABLE; - // SAFETY: IOCTL call with the correct types. - let ret = unsafe { ioctl_with_ref(&self.hv, MSHV_CHECK_EXTENSION(), &cap) }; - match ret { - 0 => Ok(false), - r if r > 0 => Ok(true), - _ => Err(errno::Error::last()), - } - } /// X86 specific call to get list of supported MSRS pub fn get_msr_index_list(&self) -> Result { /* return all the MSRs we currently support */ diff --git a/mshv-ioctls/src/mshv_ioctls.rs b/mshv-ioctls/src/mshv_ioctls.rs index 8683a284..12b0d716 100644 --- a/mshv-ioctls/src/mshv_ioctls.rs +++ b/mshv-ioctls/src/mshv_ioctls.rs @@ -3,7 +3,6 @@ // SPDX-License-Identifier: Apache-2.0 OR BSD-3-Clause // use mshv_bindings::*; -ioctl_iow_nr!(MSHV_CHECK_EXTENSION, MSHV_IOCTL, 0x00, u32); ioctl_iow_nr!(MSHV_CREATE_VP, MSHV_IOCTL, 0x04, mshv_create_vp); ioctl_iowr_nr!(MSHV_GET_VP_REGISTERS, MSHV_IOCTL, 0x05, mshv_vp_registers); ioctl_iow_nr!(MSHV_SET_VP_REGISTERS, MSHV_IOCTL, 0x06, mshv_vp_registers);