[RFC PATCH v3 1/3] x86/boot/e820: Expose kexec range update, remove and table update functions

2023-10-04 Thread Stanislav Kinsburskii
This functions are to be used to reserve memory regions in kexec kernel by other kernel subsystems. Signed-off-by: Stanislav Kinsburskii --- arch/x86/include/asm/e820/api.h |4 arch/x86/kernel/e820.c | 21 +++-- 2 files changed, 19 insertions(+), 6

[RFC PATCH v3 0/3] Introduce persistent memory pool

2023-10-04 Thread Stanislav Kinsburskii
This patch introduces a memory allocator specifically tailored for persistent memory within the kernel. The allocator maintains kernel-specific states like DMA passthrough device states, IOMMU state, and more across kexec. The current implementation provides a foundation for custom solutions that

[RFC PATCH v3 3/3] pmpool: Mark reserved range as "kernel reserved" in kexec e820 table

2023-10-04 Thread Stanislav Kinsburskii
Update the logic to classify the persistent memory pool in the kexec e820 table as "kernel reserved" when its corresponding e820 region type is "System RAM". Restore the pool when its type is "kernel reserved". This ensures the persistence of the memory pool across kexec operations.

[RFC PATCH v3 2/3] pmpool: Introduce persistent memory pool

2023-10-04 Thread Stanislav Kinsburskii
This patch introduces a memory allocator specifically tailored for persistent memory within the kernel. The allocator maintains kernel-specific states like DMA passthrough device states, IOMMU state, and more across kexec. The current implementation provides a foundation for custom solutions that

Re: [PATCH v3 0/6] crashdump: Kernel handling of CPU and memory hot un/plug

2023-10-04 Thread Eric DeVolder
On 10/4/23 07:08, Simon Horman wrote: On Wed, Sep 27, 2023 at 02:11:30PM -0400, Eric DeVolder wrote: When the kdump service is loaded, if a CPU or memory is hot un/plugged, the crash elfcorehdr, which describes the CPUs and memory in the system, must also be updated, else the resulting

Re: [PATCH 1/1] kexec: provide a memfd_create() wrapper if not present in libc

2023-10-04 Thread Simon Horman
On Sat, Sep 23, 2023 at 06:46:06PM +0200, Julien Olivain wrote: > Commit 714fa115 "kexec/arm64: Simplify the code for zImage" introduced > a use of the memfd_create() system call, included in version > kexec-tools v2.0.27. > > This system call was introduced in kernel commit [1], first included >

Re: [PATCH v3 0/6] crashdump: Kernel handling of CPU and memory hot un/plug

2023-10-04 Thread Simon Horman
On Wed, Sep 27, 2023 at 02:11:30PM -0400, Eric DeVolder wrote: > When the kdump service is loaded, if a CPU or memory is hot > un/plugged, the crash elfcorehdr, which describes the CPUs and memory > in the system, must also be updated, else the resulting vmcore is > inaccurate (eg. missing either

Re: [PATCH v2] kexec: update manpage with explicit mention of clean kexec

2023-10-04 Thread Simon Horman
On Wed, Sep 20, 2023 at 05:29:27PM +0530, Hari Bathini wrote: > While the manpage does mention about kexec boot with a clean shutdown, > it is not explicit about it. Make it explicit. > > Signed-off-by: Hari Bathini Thanks, applied. ___ kexec mailing