Received: from eggs.gnu.org ([2001:4830:134:3::10]:48171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dFOcE-0005M0-Uy for qemu-devel@nongnu.org; Mon, 29 May 2017 13:38:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dFOcE-0002SA-3W for qemu-devel@nongnu.org; Mon, 29 May 2017 13:38:03 -0400 From: Andrew Jones Date: Mon, 29 May 2017 19:37:50 +0200 Message-Id: <20170529173751.3443-2-drjones@redhat.com> In-Reply-To: <20170529173751.3443-1-drjones@redhat.com> References: <20170529173751.3443-1-drjones@redhat.com> Subject: [Qemu-devel] [PATCH 1/2] hw/arm/virt-acpi-build: build SLIT when needed List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, qemu-arm@nongnu.org Cc: zhaoshenglong@huawei.com, peter.maydell@linaro.org Cc: Shannon Zhao Signed-off-by: Andrew Jones --- 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 e5852067f5bd..2079828c22a4 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) { -- 2.9.4