|
@@ -2405,22 +2405,6 @@ build_srat(GArray *table_data, BIOSLinker *linker, MachineState *machine)
|
|
table_data->len - srat_start, 1, NULL, NULL);
|
|
table_data->len - srat_start, 1, NULL, NULL);
|
|
}
|
|
}
|
|
|
|
|
|
-static void
|
|
|
|
-build_mcfg_q35(GArray *table_data, BIOSLinker *linker, AcpiMcfgInfo *info)
|
|
|
|
-{
|
|
|
|
- AcpiTableMcfg *mcfg;
|
|
|
|
- int len = sizeof(*mcfg) + 1 * sizeof(mcfg->allocation[0]);
|
|
|
|
-
|
|
|
|
- mcfg = acpi_data_push(table_data, len);
|
|
|
|
- mcfg->allocation[0].address = cpu_to_le64(info->base);
|
|
|
|
- /* Only a single allocation so no need to play with segments */
|
|
|
|
- mcfg->allocation[0].pci_segment = cpu_to_le16(0);
|
|
|
|
- mcfg->allocation[0].start_bus_number = 0;
|
|
|
|
- mcfg->allocation[0].end_bus_number = PCIE_MMCFG_BUS(info->size - 1);
|
|
|
|
-
|
|
|
|
- build_header(linker, table_data, (void *)mcfg, "MCFG", len, 1, NULL, NULL);
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
/*
|
|
/*
|
|
* VT-d spec 8.1 DMA Remapping Reporting Structure
|
|
* VT-d spec 8.1 DMA Remapping Reporting Structure
|
|
* (version Oct. 2014 or later)
|
|
* (version Oct. 2014 or later)
|
|
@@ -2690,7 +2674,7 @@ void acpi_build(AcpiBuildTables *tables, MachineState *machine)
|
|
}
|
|
}
|
|
if (acpi_get_mcfg(&mcfg)) {
|
|
if (acpi_get_mcfg(&mcfg)) {
|
|
acpi_add_table(table_offsets, tables_blob);
|
|
acpi_add_table(table_offsets, tables_blob);
|
|
- build_mcfg_q35(tables_blob, tables->linker, &mcfg);
|
|
|
|
|
|
+ build_mcfg(tables_blob, tables->linker, &mcfg);
|
|
}
|
|
}
|
|
if (x86_iommu_get_default()) {
|
|
if (x86_iommu_get_default()) {
|
|
IommuType IOMMUType = x86_iommu_get_type();
|
|
IommuType IOMMUType = x86_iommu_get_type();
|