From 94a66456f15983f40874eff23a215ba8c74d2bdf Mon Sep 17 00:00:00 2001 From: Andrew Jones Date: Fri, 2 Jun 2017 11:51:49 +0100 Subject: [PATCH] hw/arm/virt-acpi-build: build SLIT when needed Cc: Shannon Zhao Signed-off-by: Andrew Jones Reviewed-by: Igor Mammedov Reviewed-by: Shannon Zhao Message-id: 20170529173751.3443-2-drjones@redhat.com Signed-off-by: Peter Maydell --- hw/arm/virt-acpi-build.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/arm/virt-acpi-build.c b/hw/arm/virt-acpi-build.c index e5852067f5..2079828c22 100644 --- a/hw/arm/virt-acpi-build.c +++ b/hw/arm/virt-acpi-build.c @@ -776,6 +776,10 @@ void virt_acpi_build(VirtMachineState *vms, AcpiBuildTables *tables) if (nb_numa_nodes > 0) { acpi_add_table(table_offsets, tables_blob); build_srat(tables_blob, tables->linker, vms); + if (have_numa_distance) { + acpi_add_table(table_offsets, tables_blob); + build_slit(tables_blob, tables->linker); + } } if (its_class_name() && !vmc->no_its) {