mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: memory_manager: Own the system allocator
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
This commit is contained in:
committed by
Rob Bradford
parent
ef2b11ee6c
commit
b584ec3fb3
@@ -549,7 +549,6 @@ impl DeviceManager {
|
||||
pub fn new(
|
||||
vm_fd: Arc<VmFd>,
|
||||
config: Arc<Mutex<VmConfig>>,
|
||||
allocator: Arc<Mutex<SystemAllocator>>,
|
||||
memory_manager: Arc<Mutex<MemoryManager>>,
|
||||
_exit_evt: &EventFd,
|
||||
reset_evt: &EventFd,
|
||||
@@ -564,7 +563,7 @@ impl DeviceManager {
|
||||
let mut cmdline_additions = Vec::new();
|
||||
|
||||
let address_manager = Arc::new(AddressManager {
|
||||
allocator,
|
||||
allocator: memory_manager.lock().unwrap().allocator(),
|
||||
io_bus: Arc::new(devices::Bus::new()),
|
||||
mmio_bus: Arc::new(devices::Bus::new()),
|
||||
vm_fd: vm_fd.clone(),
|
||||
|
||||
Reference in New Issue
Block a user