Skip to content

Commit 0f79f63

Browse files
committed
acpi: PCI compatible flags in FADT
Remove the flags in FADT that were declaring we do not support MSI and PCI ASPM. Signed-off-by: Babis Chalios <[email protected]>
1 parent 38d5271 commit 0f79f63

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

src/vmm/src/acpi/x86_64.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,7 @@
33

44
use std::mem::size_of;
55

6-
use acpi_tables::fadt::{
7-
IAPC_BOOT_ARG_FLAGS_MSI_NOT_PRESENT, IAPC_BOOT_ARG_FLAGS_PCI_ASPM,
8-
IAPC_BOOT_ARG_FLAGS_VGA_NOT_PRESENT,
9-
};
6+
use acpi_tables::fadt::IAPC_BOOT_ARG_FLAGS_VGA_NOT_PRESENT;
107
use acpi_tables::madt::{IoAPIC, LocalAPIC};
118
use acpi_tables::{Fadt, aml};
129
use vm_memory::GuestAddress;
@@ -33,11 +30,7 @@ pub(crate) fn setup_arch_fadt(fadt: &mut Fadt) {
3330
// neither do we support ASPM, or MSI type of interrupts.
3431
// More info here:
3532
// https://uefi.org/specs/ACPI/6.5/05_ACPI_Software_Programming_Model.html?highlight=0a06#ia-pc-boot-architecture-flags
36-
fadt.setup_iapc_flags(
37-
(1 << IAPC_BOOT_ARG_FLAGS_VGA_NOT_PRESENT)
38-
| (1 << IAPC_BOOT_ARG_FLAGS_PCI_ASPM)
39-
| (1 << IAPC_BOOT_ARG_FLAGS_MSI_NOT_PRESENT),
40-
);
33+
fadt.setup_iapc_flags(1 << IAPC_BOOT_ARG_FLAGS_VGA_NOT_PRESENT);
4134
}
4235

4336
#[inline(always)]

0 commit comments

Comments
 (0)