From: Yang Zhong <yang.zh...@intel.com> If the platform is a NUMA enabled, we add the SRAT table to the ACPI build. It is up to the calling platform to define its own SRAT build method or use the aml-build.c one.
Cc: "Michael S. Tsirkin" <m...@redhat.com> Cc: Igor Mammedov <imamm...@redhat.com> Signed-off-by: Yang Zhong <yang.zh...@intel.com> --- hw/acpi/reduced.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/hw/acpi/reduced.c b/hw/acpi/reduced.c index 3754258335..9d0c5ba01e 100644 --- a/hw/acpi/reduced.c +++ b/hw/acpi/reduced.c @@ -188,6 +188,16 @@ static void acpi_reduced_build(MachineState *ms, AcpiBuildTables *tables, acpi_add_table(table_offsets, tables_blob); mc->firmware_build_methods.acpi.madt(tables_blob, tables->linker, ms, conf); + if (conf->numa_nodes) { + acpi_add_table(table_offsets, tables_blob); + mc->firmware_build_methods.acpi.srat(tables_blob, tables->linker, + ms, conf); + if (have_numa_distance) { + acpi_add_table(table_offsets, tables_blob); + mc->firmware_build_methods.acpi.slit(tables_blob, tables->linker); + } + } + if (acpi_get_mcfg(&mcfg)) { acpi_add_table(table_offsets, tables_blob); mc->firmware_build_methods.acpi.mcfg(tables_blob, -- 2.17.2