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 <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2020-09-23 14:30:54 +02:00
parent ec56710c9b
commit 2eaf1c70c0

View File

@ -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()
});