From b1a87cb6985acd26d70f035c4c14efb5e726b87c Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Mon, 25 Jul 2022 09:21:34 +0100 Subject: [PATCH] hypervisor: mshv: Remove more #[allow(dead_code)] and unused code Signed-off-by: Rob Bradford --- hypervisor/src/mshv/mod.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/hypervisor/src/mshv/mod.rs b/hypervisor/src/mshv/mod.rs index 4c68fa430..766dc4925 100644 --- a/hypervisor/src/mshv/mod.rs +++ b/hypervisor/src/mshv/mod.rs @@ -264,7 +264,6 @@ impl hypervisor::Hypervisor for MshvHypervisor { Ok(Arc::new(MshvVm { fd: vm_fd, msrs, - vm_ops: None, dirty_log_slots: Arc::new(RwLock::new(HashMap::new())), })) } @@ -276,7 +275,6 @@ impl hypervisor::Hypervisor for MshvHypervisor { } } -#[allow(dead_code)] /// Vcpu struct for Microsoft Hypervisor pub struct MshvVcpu { fd: VcpuFd, @@ -896,12 +894,10 @@ impl<'a> PlatformEmulator for MshvEmulatorContext<'a> { } } -#[allow(dead_code)] /// Wrapper over Mshv VM ioctls. pub struct MshvVm { fd: Arc, msrs: Vec, - vm_ops: Option>, dirty_log_slots: Arc>>, }