diff --git a/vmm/src/device_manager.rs b/vmm/src/device_manager.rs index 5082f64f0..564673749 100644 --- a/vmm/src/device_manager.rs +++ b/vmm/src/device_manager.rs @@ -519,6 +519,7 @@ impl DeviceManager { #[cfg(feature = "acpi")] let config = vm_info.vm_cfg.clone(); + #[cfg(feature = "acpi")] address_manager .allocator .lock() @@ -526,6 +527,7 @@ impl DeviceManager { .allocate_io_addresses(Some(GuestAddress(0x0a00)), 0x18, None) .ok_or(DeviceManagerError::AllocateIOPort)?; + #[cfg(feature = "acpi")] address_manager .io_bus .insert(_memory_manager.clone(), 0xa00, 0x18)