(&self)
| 2578 | } |
| 2579 | |
| 2580 | pub fn snapshot_data(&self) -> MemoryManagerSnapshotData { |
| 2581 | MemoryManagerSnapshotData { |
| 2582 | memory_ranges: self.snapshot_memory_ranges.clone(), |
| 2583 | guest_ram_mappings: self.guest_ram_mappings.clone(), |
| 2584 | start_of_device_area: self.start_of_device_area.0, |
| 2585 | boot_ram: self.boot_ram, |
| 2586 | current_ram: self.current_ram, |
| 2587 | arch_mem_regions: self.arch_mem_regions.clone(), |
| 2588 | hotplug_slots: self.hotplug_slots.clone(), |
| 2589 | next_memory_slot: self.next_memory_slot.load(Ordering::SeqCst), |
| 2590 | selected_slot: self.selected_slot, |
| 2591 | next_hotplug_slot: self.next_hotplug_slot, |
| 2592 | } |
| 2593 | } |
| 2594 | |
| 2595 | pub fn memory_slot_fds(&self) -> HashMap<u32, RawFd> { |
| 2596 | let mut memory_slot_fds = HashMap::new(); |
no test coverage detected