vmm: device_manager: Expose the SystemAllocator

This allows other code to allocate I/O ports for use on the (already)
exposed IO bus.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2019-11-11 14:57:41 +00:00 committed by Sebastien Boeuf
parent 1ac1231292
commit 50c8335d3d

View File

@ -1478,6 +1478,10 @@ impl DeviceManager {
&self.address_manager.mmio_bus
}
pub fn allocator(&self) -> &Arc<Mutex<SystemAllocator>> {
&self.address_manager.allocator
}
pub fn ioapic(&self) -> &Option<Arc<Mutex<ioapic::Ioapic>>> {
&self.ioapic
}