From 50c8335d3d21393caa4f474e37b1f14c884b1538 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Mon, 11 Nov 2019 14:57:41 +0000 Subject: [PATCH] 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 --- vmm/src/device_manager.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vmm/src/device_manager.rs b/vmm/src/device_manager.rs index 9145dec0c..223011689 100644 --- a/vmm/src/device_manager.rs +++ b/vmm/src/device_manager.rs @@ -1478,6 +1478,10 @@ impl DeviceManager { &self.address_manager.mmio_bus } + pub fn allocator(&self) -> &Arc> { + &self.address_manager.allocator + } + pub fn ioapic(&self) -> &Option>> { &self.ioapic }