Skip to content

account for NVDIMM nodes during SRAT generation

Vishal Verma qemu-devel 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest3 patches 2 repliesIn review
  2. v43 patches 4 repliesSuperseded
  3. v33 patches 1 replySuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v23 patches2 repliesSuperseded
v13 patches7 repliesSuperseded

Changes in v5 from the cover letter

- Change the commit message in patch 2 to use memdev= instead of mem= which is deprecated (Igor)
- Add Igor's Reviewed-by

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3diffs-allowed: add the SRAT AML to diffs-allowedtests/qtest/bios-tables-test-allowed-diff.h+3 -00 replies
2/3hw/acpi/nvdimm: add a helper to augment SRAT generationhw/acpi/nvdimm.c hw/arm/virt-acpi-build.c hw/i386/acpi-build.c +1 more+33 -00 replies
3/3tests/acpi: update expected SRAT filestests/data/acpi/pc/SRAT.dimmpxm tests/data/acpi/q35/SRAT.dimmpxm tests/data/acpi/virt/SRAT.memhp +4 more+37 -262 replies

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchJingqi LiuIgor Mammedov
1/3
2/3R-b R-b
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [PATCH v5 0/3] account for NVDIMM nodes during SRAT generation

Changes since v4 (no code changes):
- Change the commit message in patch 2 to use memdev= instead of mem= which is deprecated (Igor)
- Add Igor's Reviewed-by

Changes since v3:
- Add the SRAT augmentation for ARM's virt-acpi-build as well (Igor)
- Update patches 1 and 3 for the test binaries to include ARM tests.

Changes since v2:
- Change a repetitive OBJECT(dev) to a stored 'Object' (Igor)
- No need to return 'numamem' back to build_srat (Igor)

Changes since v1:
- Use error_abort for getters (Igor)
- Free the device list (Igor)
- Refactor the NVDIMM related portion into hw/acpi/nvdimm.c (Igor)
- Rebase onto latest master
- Add Jingqi's Reviewed-by

On the command line, one can specify a NUMA node for NVDIMM devices. If we set up the topology to give NVDIMMs their own nodes, i.e. not containing any CPUs or regular memory, qemu doesn't populate SRAT memory affinity structures for these nodes. However the NFIT does reference those proximity domains.

As a result, Linux, while parsing the SRAT, fails to initialize node related structures for these nodes, and they never end up in the nodes_possible map. When these are onlined at a later point (via hotplug), this causes problems.

I've followed the instructions in bios-tables-test.c to update the expected SRAT binary, and the tests (make check) pass. Patches 1 and 3 are the relevant ones for the binary update.

Patch 2 is the main patch which changes SRAT generation.

Vishal Verma (3):
diffs-allowed: add the SRAT AML to diffs-allowed hw/acpi/nvdimm: add a helper to augment SRAT generation tests/acpi: update expected SRAT files

 hw/acpi/nvdimm.c                 |  23 +++++++++++++++++++++++
 hw/arm/virt-acpi-build.c         |   4 ++++
 hw/i386/acpi-build.c             |   5 +++++
 include/hw/mem/nvdimm.h          |   1 +
 tests/data/acpi/pc/SRAT.dimmpxm  | Bin 392 -> 392 bytes
 tests/data/acpi/q35/SRAT.dimmpxm | Bin 392 -> 392 bytes
 tests/data/acpi/virt/SRAT.memhp  | Bin 186 -> 226 bytes
 7 files changed, 33 insertions(+)
Signature · 1 line
2.26.2