vmm: Create AddressManager to own SystemAllocator

In order to reuse the SystemAllocator later at runtime, it is moved into
the new structure AddressManager. The goal is to have a hold onto the
SystemAllocator and both IO and MMIO buses so that we can use them
later.

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2019-10-23 15:14:13 -07:00
committed by Samuel Ortiz
parent 1870eb4295
commit 8746c16593
2 changed files with 61 additions and 60 deletions

View File

@@ -701,7 +701,7 @@ impl Vm {
let device_manager = DeviceManager::new(
&vm_info,
&mut allocator,
allocator,
msi_capable,
userspace_ioapic,
ram_regions.len() as u32,