Skip to content

nvdimm: add 'target-node' option

Jingqi Liu qemu-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest1 patch 2 repliesIn review
  2. v11 patch 2 repliesSuperseded

Changes in v2 from the cover letter

- Per Igor's comments, adjust target node error handling, and make both 'node' and 'target-node' properties mutually exclusive. Create a callback of nvdimm_pre_plug() for checking whether the 'target-node' is correct.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/1nvdimm: add 'target-node' optiondocs/nvdimm.txt hw/acpi/nvdimm.c hw/i386/acpi-build.c +4 more+198 -112 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/1] nvdimm: add 'target-node' option

Linux kernel version 5.1 brings in support for the volatile-use of persistent memory as a hotplugged memory region (KMEM DAX). When this feature is enabled, persistent memory can be seen as a separate memory-only NUMA node(s). This newly-added memory can be selected by its unique NUMA node.

Add 'target-node' option for 'nvdimm' device to indicate this NUMA node. It can be extended to a new node after all existing NUMA nodes.

Changelog:
v2:
- Per Igor's comments, adjust target node error handling, and make both 'node' and 'target-node' properties mutually exclusive. Create a callback of nvdimm_pre_plug() for checking whether the 'target-node' is correct.
v1:
- It's the initial version.

Jingqi Liu (1):
nvdimm: add 'target-node' option

 docs/nvdimm.txt         | 93 +++++++++++++++++++++++++++++++++++++++++
 hw/acpi/nvdimm.c        | 18 ++++----
 hw/i386/acpi-build.c    | 12 +++++-
 hw/i386/pc.c            |  4 ++
 hw/mem/nvdimm.c         | 43 ++++++++++++++++++-
 include/hw/mem/nvdimm.h | 17 +++++++-
 util/nvdimm-utils.c     | 22 ++++++++++
 7 files changed, 198 insertions(+), 11 deletions(-)
Signature · 1 line
2.21.3