From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51886) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1broTm-0000NQ-H5 for qemu-devel@nongnu.org; Wed, 05 Oct 2016 11:51:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1broTi-0002RP-B5 for qemu-devel@nongnu.org; Wed, 05 Oct 2016 11:51:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:33546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1broTi-0002RC-4k for qemu-devel@nongnu.org; Wed, 05 Oct 2016 11:51:30 -0400 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A76001CCC33 for ; Wed, 5 Oct 2016 15:51:28 +0000 (UTC) From: Igor Mammedov Date: Wed, 5 Oct 2016 17:51:22 +0200 Message-Id: <1475682686-132013-1-git-send-email-imammedo@redhat.com> Subject: [Qemu-devel] [PATCH v5 0/4] fix numa node mapping for hotplugged CPUs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: mst@redhat.com Changelog: v4->v5: - rebase on top of current master, practicaaly resend of reviewed v4 which got lost during 2.7 merge window, so I've kept all Reviewed-by-s * 'tests: acpi: extend cphp testcase with numa check' couldn't be applied due context change so I had to fix it manually - split out expected tables blobs into separate patch v3->v4: - return -1 on failure from numa_get_node_for_cpu() - replace SRAT table blob in 5/5 with note to maintainer to add it manually v1->v3: - fix commit message for 4/5 - add numa_get_node_for_cpu() helper - add comment in code explaining why _PXM is being added Series makes hotplugged CPUs assigned to correct numa nodes for Linux guests and extends CPU hotplug test with numa options NOTE TO MAINTAINER: After running rebuild-expected-aml.sh blobs to be updated tests/acpi-test-data/pc/DSDT.cphp tests/acpi-test-data/q35/DSDT.cphp new blobs to be added tests/acpi-test-data/pc/SRAT.cphp tests/acpi-test-data/q35/SRAT.cphp Igor Mammedov (4): numa: reduce code duplication by adding helper numa_get_node_for_cpu() acpi: provide _PXM method for CPU devices if QEMU is started numa enabled tests: acpi: extend cphp testcase with numa check DO NOT APPLY: acpi tables expected blobs update include/sysemu/numa.h | 3 +++ hw/acpi/cpu.c | 12 ++++++++++++ hw/arm/virt-acpi-build.c | 6 ++---- hw/arm/virt.c | 7 +++---- hw/i386/acpi-build.c | 7 ++----- hw/i386/pc.c | 8 +++----- hw/ppc/spapr_cpu_core.c | 6 ++---- numa.c | 12 ++++++++++++ tests/acpi-test-data/pc/DSDT.cphp | Bin 6435 -> 6471 bytes tests/acpi-test-data/pc/SRAT.cphp | Bin 0 -> 304 bytes tests/acpi-test-data/q35/DSDT.cphp | Bin 9197 -> 9233 bytes tests/acpi-test-data/q35/SRAT.cphp | Bin 0 -> 304 bytes tests/bios-tables-test.c | 6 ++++-- 13 files changed, 43 insertions(+), 24 deletions(-) create mode 100644 tests/acpi-test-data/pc/SRAT.cphp create mode 100644 tests/acpi-test-data/q35/SRAT.cphp -- 2.7.4