From 72fdfff15dd616878b89af74a7134fe681a54e9a Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 14 Apr 2020 16:39:42 +0100 Subject: [PATCH] vmm: device_manager: Remove unused "_mmap_regions" member Now that ownership of the memory regions used for the virtio-pmem and vhost-user-fs devices have been moved into those devices it is no longer necessary to track them inside DeviceManager. Signed-off-by: Rob Bradford --- vmm/src/device_manager.rs | 8 -------- 1 file changed, 8 deletions(-) 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,