Re: [PATCHv8 00/17, CORRECTED] x86/tdx: Add kexec support

2024-03-06 Thread Tao Liu
Hi Kirill, On Wed, Mar 06, 2024 at 05:02:45PM +0200, Kirill A. Shutemov wrote: > On Tue, Feb 27, 2024 at 11:24:35PM +0200, Kirill A. Shutemov wrote: > > The patchset adds bits and pieces to get kexec (and crashkernel) work on > > TDX guest. > > > > The last patch implements CPU offlining

Re: [PATCHv8 00/17, CORRECTED] x86/tdx: Add kexec support

2024-03-06 Thread Kirill A. Shutemov
On Tue, Feb 27, 2024 at 11:24:35PM +0200, Kirill A. Shutemov wrote: > The patchset adds bits and pieces to get kexec (and crashkernel) work on > TDX guest. > > The last patch implements CPU offlining according to the approved ACPI > spec change poposal[1]. It unlocks kexec with all CPUs visible

[PATCH v3 7/7] nvdimm: set force_raw=1 in kdump kernel

2024-03-06 Thread Li Zhijian
The virtually mapped memory map allows storing struct page objects for persistent memory devices in pre-allocated storage on those devices. These 'struct page objects' on devices are also known as metadata. During libnvdimm/nd_pmem are loading, the previous metadata will be re-constructed to fit

[PATCH v3 3/7] nvdimm: pmem: assign a parent resource for vmemmap region for the fsdax

2024-03-06 Thread Li Zhijian
When the pmem is configured as fsdax, set the vmemmap region as a child of the namespace region so that it can be registered as a separate resource later. CC: Dan Williams CC: Vishal Verma CC: Dave Jiang CC: Ira Weiny CC: Baoquan He CC: nvd...@lists.linux.dev Signed-off-by: Li Zhijian ---

[PATCH v3 1/7] mm: memremap: register/unregister altmap region to a separate resource

2024-03-06 Thread Li Zhijian
The elfcorehdr descirbes the dumpable region in PT_LOADs. Generally, an iomem resource registered with flags (IORESOURCE_SYSTEM_RAM | IORESOUCE_BUSY) will be added to PT_LOADs by kexe_file_load(2). An iomem resource with name prefix "System RAM" will be added to PT_LOADs in kexec-tools by calling

[PATCH v3 4/7] dax: pmem: assign a parent resource for vmemmap region for the devdax

2024-03-06 Thread Li Zhijian
When the pmem is configured as devdax, set the vmemmap region as a child of the namespace region so that it can be registered as a separate resource later. CC: Dan Williams CC: Vishal Verma CC: Dave Jiang CC: Baoquan He CC: nvd...@lists.linux.dev CC: linux-...@vger.kernel.org Signed-off-by:

[PATCH v3 6/7] x86/crash: make device backed vmemmap dumpable for kexec_file_load

2024-03-06 Thread Li Zhijian
Add resources with specific flags to PT_LOADs of the elfcorehdr so that these resources can be dumpable. This change is for kexec_file_load(2) while kexec_load(2) setups the PT_LOADs according to its parameters by the callers which usually rely on resources' name from /proc/iomem CC: Thomas

[PATCH v3 2/7] mm: memremap: add pgmap_parent_resource() helper

2024-03-06 Thread Li Zhijian
It's a helper to set the parent resource for the altmap of a given pgmap CC: Andrew Morton CC: Dan Williams CC: Baoquan He CC: linux...@kvack.org Signed-off-by: Li Zhijian --- include/linux/memremap.h | 1 + mm/memremap.c| 7 +++ 2 files changed, 8 insertions(+) diff --git

[PATCH v3 5/7] resource: Introduce walk device_backed_vmemmap res() helper

2024-03-06 Thread Li Zhijian
It walks resources registered with flags (IORESOURCE_DEVICE_BACKED_VMEMMAP | IORESOURCE_BUSY), usually used by device backed vmemmap region. currently, it only sticks to the persistent memory type since it is only one user. CC: Andrew Morton CC: Baoquan He CC: Greg Kroah-Hartman CC: Alison

[RFC PATCH v3 0/7] device backed vmemmap crash dump support

2024-03-06 Thread Li Zhijian
Hello folks, Compared with the V2[1] I posted a long time ago, this time it is a completely new proposal design. ### Background and motivate overview ### --- Crash dump is an important feature for troubleshooting the kernel. It is the final way to chase what happened at the kernel panic,