Skip to content

libnvdimm/e820: Add a new parameter to configure many regions per e820 entry

Michal Clapinski linux-cxl linux-doc linux-mm lkml nvdimm oe-kbuild-all 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 5 repliesIn review
  2. v21 patch 8 repliesSuperseded
  3. v11 patch 0 repliesSuperseded

Changes in v3 from the cover letter

- Added a second commit.
- Reworked string parsing.
- I was asked to rename the parameter to 'split' but I'm not sure it fits anymore with the conversion functionality, so I didn't do that yet. LMK.
v2: Fixed a crash when pmem parameter is omitted.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2libnvdimm/e820: Add a new parameter to split e820 entry into many regionsDocumentation/admin-guide/kernel-parameters.txt drivers/nvdimm/e820.c+163 -30 replies
2/2libnvdimm: add nd_e820.pmem automatic devdax conversionDocumentation/admin-guide/kernel-parameters.txt drivers/dax/pmem.c drivers/nvdimm/dax_devs.c +4 more+189 -520 replies

Reviews trailers per patch

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

Read the v3 thread

Cover letter [PATCH v3 0/2] libnvdimm/e820: Add a new parameter to configure many regions per e820 entry

This includes:
1. Splitting one e820 entry into many regions.
2. Conversion to devdax during boot.

This change is needed for the hypervisor live update. VMs' memory will be backed by those emulated pmem devices. To support various VM shapes I want to create devdax devices at 1GB granularity similar to hugetlb. Also detecting those devices as devdax during boot speeds up the whole process. Conversion in userspace would be much slower which is unacceptable while trying to minimize

v3:
- Added a second commit.
- Reworked string parsing.
- I was asked to rename the parameter to 'split' but I'm not sure it fits anymore with the conversion functionality, so I didn't do that yet. LMK.
v2: Fixed a crash when pmem parameter is omitted.

Michal Clapinski (2):
libnvdimm/e820: Add a new parameter to split e820 entry into many
regions
libnvdimm: add nd_e820.pmem automatic devdax conversion

 .../admin-guide/kernel-parameters.txt         |  10 +
 drivers/dax/pmem.c                            |   2 +-
 drivers/nvdimm/dax_devs.c                     |   5 +-
 drivers/nvdimm/e820.c                         | 211 +++++++++++++++++-
 drivers/nvdimm/nd.h                           |   6 +
 drivers/nvdimm/pfn_devs.c                     | 158 +++++++++----
 include/linux/libnvdimm.h                     |   3 +
 7 files changed, 346 insertions(+), 49 deletions(-)
Signature · 1 line
2.50.0.rc1.591.g9c95f17f64-goog