mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 21:55:20 +00:00
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:
parent
1ac1231292
commit
50c8335d3d
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user