vmm: Remove legacy I/O ports for ACPI

These addresses have been superseded and replaced with other I/O ports.

Fixes: #4483

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2022-10-03 15:48:43 +01:00
parent 2115a41568
commit 1bc63e7848

View File

@ -1400,15 +1400,6 @@ impl DeviceManager {
{
let shutdown_pio_address: u16 = 0x600;
// TODO: Remove the entry for 0x3c0 once all firmwares will have been
// updated with the new value.
self.address_manager
.allocator
.lock()
.unwrap()
.allocate_io_addresses(Some(GuestAddress(0x3c0)), 0x8, None)
.ok_or(DeviceManagerError::AllocateIoPort)?;
self.address_manager
.allocator
.lock()
@ -1416,13 +1407,6 @@ impl DeviceManager {
.allocate_io_addresses(Some(GuestAddress(shutdown_pio_address.into())), 0x8, None)
.ok_or(DeviceManagerError::AllocateIoPort)?;
// TODO: Remove the entry for 0x3c0 once all firmwares will have been
// updated with the new value.
self.address_manager
.io_bus
.insert(shutdown_device.clone(), 0x3c0, 0x4)
.map_err(DeviceManagerError::BusError)?;
self.address_manager
.io_bus
.insert(shutdown_device, shutdown_pio_address.into(), 0x4)
@ -1484,15 +1468,6 @@ impl DeviceManager {
{
let pm_timer_pio_address: u16 = 0x608;
// TODO: Remove the entry for 0xb008 once all firmwares will have been
// updated with the new value.
self.address_manager
.allocator
.lock()
.unwrap()
.allocate_io_addresses(Some(GuestAddress(0xb008)), 0x4, None)
.ok_or(DeviceManagerError::AllocateIoPort)?;
self.address_manager
.allocator
.lock()
@ -1500,13 +1475,6 @@ impl DeviceManager {
.allocate_io_addresses(Some(GuestAddress(pm_timer_pio_address.into())), 0x4, None)
.ok_or(DeviceManagerError::AllocateIoPort)?;
// TODO: Remove the entry for 0xb008 once all firmwares will have been
// updated with the new value.
self.address_manager
.io_bus
.insert(pm_timer_device.clone(), 0xb008, 0x4)
.map_err(DeviceManagerError::BusError)?;
self.address_manager
.io_bus
.insert(pm_timer_device, pm_timer_pio_address.into(), 0x4)