vmm: device_manager: Allocate I/O port for ACPI shutdown device

The refactoring in ce1765c8af dropped the
code to allocate the I/O port.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2019-11-27 15:25:55 +00:00
parent 86339b4cb4
commit 7ad68d499a

View File

@ -669,6 +669,13 @@ impl DeviceManager {
exit_evt, reset_evt,
)));
address_manager
.allocator
.lock()
.unwrap()
.allocate_io_addresses(Some(GuestAddress(0x3c0)), 0x8, None)
.ok_or(DeviceManagerError::AllocateIOPort)?;
address_manager
.io_bus
.insert(acpi_device.clone(), 0x3c0, 0x4)