[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250612114210.2786075-1-mclapinski@google.com>
Date: Thu, 12 Jun 2025 13:42:08 +0200
From: Michal Clapinski <mclapinski@...gle.com>
To: Jonathan Corbet <corbet@....net>, Dan Williams <dan.j.williams@...el.com>,
Vishal Verma <vishal.l.verma@...el.com>, Dave Jiang <dave.jiang@...el.com>,
Ira Weiny <ira.weiny@...el.com>, nvdimm@...ts.linux.dev
Cc: "Paul E. McKenney" <paulmck@...nel.org>, Thomas Huth <thuth@...hat.com>,
Andrew Morton <akpm@...ux-foundation.org>, Steven Rostedt <rostedt@...dmis.org>,
"Borislav Petkov (AMD)" <bp@...en8.de>, Ard Biesheuvel <ardb@...nel.org>,
Greg Kroah-Hartman <gregkh@...uxfoundation.org>, Pasha Tatashin <pasha.tatashin@...een.com>,
Mike Rapoport <rppt@...nel.org>, linux-doc@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-cxl@...r.kernel.org, Michal Clapinski <mclapinski@...gle.com>
Subject: [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(-)
--
2.50.0.rc1.591.g9c95f17f64-goog
Powered by blists - more mailing lists