diff --git a/hypervisor/src/mshv/mod.rs b/hypervisor/src/mshv/mod.rs index af7dfa505..77595d95c 100644 --- a/hypervisor/src/mshv/mod.rs +++ b/hypervisor/src/mshv/mod.rs @@ -528,6 +528,7 @@ unsafe impl Send for Ghcb {} unsafe impl Sync for Ghcb {} /// Vcpu struct for Microsoft Hypervisor +#[allow(dead_code)] pub struct MshvVcpu { fd: VcpuFd, vp_index: u8, @@ -1283,7 +1284,7 @@ impl cpu::Vcpu for MshvVcpu { } #[cfg(target_arch = "aarch64")] - fn init_pmu(&self, irq: u32) -> cpu::Result<()> { + fn init_pmu(&self, _irq: u32) -> cpu::Result<()> { unimplemented!() } @@ -1293,12 +1294,12 @@ impl cpu::Vcpu for MshvVcpu { } #[cfg(target_arch = "aarch64")] - fn setup_regs(&self, cpu_id: u8, boot_ip: u64, fdt_start: u64) -> cpu::Result<()> { + fn setup_regs(&self, _cpu_id: u8, _boot_ip: u64, _fdt_start: u64) -> cpu::Result<()> { unimplemented!() } #[cfg(target_arch = "aarch64")] - fn get_sys_reg(&self, sys_reg: u32) -> cpu::Result { + fn get_sys_reg(&self, _sys_reg: u32) -> cpu::Result { unimplemented!() } @@ -1444,7 +1445,7 @@ impl cpu::Vcpu for MshvVcpu { /// /// Set CPU state for aarch64 guest. /// - fn set_state(&self, state: &CpuState) -> cpu::Result<()> { + fn set_state(&self, _state: &CpuState) -> cpu::Result<()> { unimplemented!() } @@ -2170,7 +2171,7 @@ impl vm::Vm for MshvVm { } #[cfg(target_arch = "aarch64")] - fn create_vgic(&self, config: VgicConfig) -> vm::Result>> { + fn create_vgic(&self, _config: VgicConfig) -> vm::Result>> { unimplemented!() }