Skip to content

fix numa node mapping for hotplugged CPUs

Igor Mammedov qemu-devel 4 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest4 patches 0 repliesNew
  2. v45 patches 3 repliesSuperseded
  3. v35 patches 7 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches8 repliesSuperseded

Changes in v5 from the cover letter

- 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

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4numa: reduce code duplication by adding helper numa_get_node_for_cpu()hw/arm/virt-acpi-build.c hw/arm/virt.c hw/i386/acpi-build.c +4 more+27 -220 replies
2/4acpi: provide _PXM method for CPU devices if QEMU is started numa enabledhw/acpi/cpu.c+12 -00 replies
3/4tests: acpi: extend cphp testcase with numa checktests/bios-tables-test.c+4 -20 replies
4/4tests: acpi tables expected blobs updatetests/acpi-test-data/pc/DSDT.cphp tests/acpi-test-data/pc/SRAT.cphp tests/acpi-test-data/q35/DSDT.cphp +1 more+0 -00 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchDavid GibsonShannon ZhaoMarcel Apfelbaum
1/4R-b R-b
2/4R-b
3/4R-b
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v5 thread

Cover letter [Qemu-devel] [PATCH v5 0/4] fix numa node mapping for hotplugged CPUs

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
Signature · 1 line
2.7.4