diff --git a/vmm/src/device_manager.rs b/vmm/src/device_manager.rs index 594c374a1..7a09a380f 100644 --- a/vmm/src/device_manager.rs +++ b/vmm/src/device_manager.rs @@ -472,12 +472,6 @@ pub struct DeviceManager { // IOAPIC ioapic: Option>>, - // List of mmap()ed regions managed through MmapRegion instances. - // Using MmapRegion will perform the unmapping automatically when - // the instance is dropped, which happens when the DeviceManager - // gets dropped. - _mmap_regions: Vec, - // Things to be added to the commandline (i.e. for virtio-mmio) cmdline_additions: Vec, @@ -559,7 +553,6 @@ impl DeviceManager { let mut virtio_devices: Vec<(Arc>, bool)> = Vec::new(); let migratable_devices: HashMap>> = HashMap::new(); let mut bus_devices: Vec>> = Vec::new(); - let mut _mmap_regions = Vec::new(); #[allow(unused_mut)] let mut cmdline_additions = Vec::new(); @@ -620,7 +613,6 @@ impl DeviceManager { address_manager: Arc::clone(&address_manager), console: Arc::new(Console::default()), ioapic: Some(ioapic), - _mmap_regions, cmdline_additions, #[cfg(feature = "acpi")] ged_notification_device: None,