mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-22 04:25:21 +00:00
arch: acpi: Correct starting length of MCFG table
The starting length of the MCFG table was too long resulting in the kernel trying to get extra MCFG entries from the table that weren't there resulting in the following error message from the kernel: PCI: no memory for MCFG entries The MCFG table also has an 8 bytes of padding at the start before the table begins. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
67ef4f0d74
commit
eb60106159
@ -276,7 +276,10 @@ pub fn create_acpi_tables(
|
||||
tables.push(madt_offset.0);
|
||||
|
||||
// MCFG
|
||||
let mut mcfg = SDT::new(*b"MCFG", 60, 1, *b"CLOUDH", *b"CHMCFG ", 1);
|
||||
let mut mcfg = SDT::new(*b"MCFG", 36, 1, *b"CLOUDH", *b"CHMCFG ", 1);
|
||||
|
||||
// MCFG reserved 8 bytes
|
||||
mcfg.append(0u64);
|
||||
|
||||
// 32-bit PCI enhanced configuration mechanism
|
||||
mcfg.append(PCIRangeEntry {
|
||||
|
Loading…
x
Reference in New Issue
Block a user