diff options
author | Andrew Jones <drjones@redhat.com> | 2017-05-29 19:37:50 +0200 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2017-06-01 17:27:07 +0100 |
commit | e356f436b6d6dc9274e91f71e12685fd655a7c08 (patch) | |
tree | 02cea17f038498efcf416cd2310c52cf5ef26892 | |
parent | 40371a6e561a2810ed0e3e7931b5dbf68f8dde32 (diff) |
hw/arm/virt-acpi-build: build SLIT when needed
Cc: Shannon Zhao <zhaoshenglong@huawei.com>
Signed-off-by: Andrew Jones <drjones@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Shannon Zhao <shannon.zhao@linaro.org>
Message-id: 20170529173751.3443-2-drjones@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
-rw-r--r-- | hw/arm/virt-acpi-build.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |