From 4d25eaa24ae10390aca5bd9d5310151b2edf3384 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Tue, 22 Jun 2021 17:04:57 +0000 Subject: [PATCH] vmm: Add I/O port range to PCI bus resources The Linux kernel expects that any PCI devices that advertise I/O bars have use an address that is within the range advertised by the bus itself. Unfortunately we were not advertising any I/O ports associated with the PCI bus in the ACPI tables. Signed-off-by: Rob Bradford --- vmm/src/device_manager.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vmm/src/device_manager.rs b/vmm/src/device_manager.rs index 0edf33be6..f493a80bb 100644 --- a/vmm/src/device_manager.rs +++ b/vmm/src/device_manager.rs @@ -3779,6 +3779,10 @@ impl Aml for DeviceManager { start_of_device_area, end_of_device_area, ), + #[cfg(target_arch = "x86_64")] + &aml::AddressSpace::new_io(0u16, 0x0cf7u16), + #[cfg(target_arch = "x86_64")] + &aml::AddressSpace::new_io(0x0d00u16, 0xffffu16), ]), ); pci_dsdt_inner_data.push(&crs);