From 2eaf1c70c01a9ba5e94fef81b575e048f08abe54 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Wed, 23 Sep 2020 14:30:54 +0200 Subject: [PATCH] vmm: acpi: Advertise the correct PCI bus range Since Cloud-Hypervisor currently support one single PCI bus, we must reflect this through the MCFG table, as it advertises the first bus and the last bus available. In this case both are bus 0. This patch saves quite some time during guest kernel boot, as it prevents from checking each bus for available devices. Signed-off-by: Sebastien Boeuf --- 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 1366b02c1..8f2eb7cb8 100644 --- a/vmm/src/acpi.rs +++ b/vmm/src/acpi.rs @@ -180,7 +180,7 @@ pub fn create_acpi_tables( base_address: layout::PCI_MMCONFIG_START.0, segment: 0, start: 0, - end: 0xff, + end: 0, ..Default::default() });