mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-02 11:35:46 +00:00
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:
parent
86339b4cb4
commit
7ad68d499a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user