Received: from eggs.gnu.org ([2001:4830:134:3::10]:37951) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnODF-0000WH-Id for qemu-devel@nongnu.org; Thu, 31 Aug 2017 08:04:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnODC-0004jF-Jv for qemu-devel@nongnu.org; Thu, 31 Aug 2017 08:04:45 -0400 Received: from mail.cn.fujitsu.com ([183.91.158.132]:27977 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnODC-0004iA-89 for qemu-devel@nongnu.org; Thu, 31 Aug 2017 08:04:42 -0400 From: Dou Liyang Date: Thu, 31 Aug 2017 20:04:25 +0800 Message-ID: <1504181068-17822-1-git-send-email-douly.fnst@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v5 0/3] hw/acpi-build: Fix ACPI SRAT Memory Affinity building List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: ehabkost@redhat.com, imammedo@redhat.com, mst@redhat.com, rth@twiddle.net, Dou Liyang v4 --> v5: - Replace the original way with Eduardo's method. - rewrite the testcase. - Drop the SLIT date - 2.11 develop tree is opened, So, Add the third patch for re-posting it. v3 --> v4: -add a new testcase. This patchset fixs an ACPI building bug which caused by no RAM in the first NUAM node. and also add a new testcase for the bug. Dou Liyang (2): ACPI/unit-test: Add a new testcase for RAM allocation in numa node NUMA: Replace MAX_NODES with nb_numa_nodes in for loop Eduardo Habkost (1): hw/acpi-build: Fix SRAT memory building in case of node 0 without RAM hw/i386/acpi-build.c | 30 +++++++++++++++++++++++------- numa.c | 2 +- tests/acpi-test-data/pc/DSDT.numamem | Bin 0 -> 5104 bytes tests/acpi-test-data/pc/SRAT.numamem | Bin 0 -> 224 bytes tests/acpi-test-data/q35/DSDT.numamem | Bin 0 -> 7788 bytes tests/acpi-test-data/q35/SRAT.numamem | Bin 0 -> 224 bytes tests/bios-tables-test.c | 24 ++++++++++++++++++++++++ 7 files changed, 48 insertions(+), 8 deletions(-) create mode 100644 tests/acpi-test-data/pc/DSDT.numamem create mode 100644 tests/acpi-test-data/pc/SRAT.numamem create mode 100644 tests/acpi-test-data/q35/DSDT.numamem create mode 100644 tests/acpi-test-data/q35/SRAT.numamem -- 2.5.5