From 7bfb51489b3f4a9385ed64893a272ce63830b710 Mon Sep 17 00:00:00 2001 From: Michael Zhao Date: Thu, 4 Feb 2021 21:02:44 +0800 Subject: [PATCH] acpi: Implement MCFG for AArch64 Added the final PCI bus number in MCFG table. This field is mandatory on AArch64. On X86 it is optional. Signed-off-by: Michael Zhao --- vmm/src/acpi.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmm/src/acpi.rs b/vmm/src/acpi.rs index 1408f50eb..28edab01b 100644 --- a/vmm/src/acpi.rs +++ b/vmm/src/acpi.rs @@ -169,7 +169,7 @@ fn create_mcfg_table() -> Sdt { base_address: arch::layout::PCI_MMCONFIG_START.0, segment: 0, start: 0, - end: 0, + end: ((arch::layout::PCI_MMCONFIG_SIZE - 1) >> 20) as u8, ..Default::default() }); mcfg