Re: [PATCH linux-next 3/3] powerpc/kdump: Split KEXEC_CORE and CRASH_DUMP dependency

2024-02-25 Thread Hari Bathini
On 23/02/24 1:05 pm, Sourabh Jain wrote: Hello Hari, Hi Sourabh, Build failure detected. Thanks for trying out the patches. On 13/02/24 17:01, Hari Bathini wrote: Remove CONFIG_CRASH_DUMP dependency on CONFIG_KEXEC. CONFIG_KEXEC_CORE was used at places where CONFIG_CRASH_DUMP or

[PATCH RESEND] crash_core: export vmemmap when CONFIG_SPARSEMEM_VMEMMAP is enabled

2024-02-25 Thread Huang Shijie
In memory_model.h, if CONFIG_SPARSEMEM_VMEMMAP is configed, kernel will use vmemmap to do the __pfn_to_page/page_to_pfn, and kernel will not use the "classic sparse" to do the __pfn_to_page/page_to_pfn. So export the vmemmap when CONFIG_SPARSEMEM_VMEMMAP is configed. This makes the user

Re: [PATCHv7 08/16] x86/tdx: Account shared memory

2024-02-25 Thread Dave Hansen
On 2/25/24 07:54, Kirill A. Shutemov wrote: > Serializing is cumbersome here. I can also just drop the interface. Just drop it for now. We can come back after the fact and debate how to do the debugging. ___ kexec mailing list

Re: [PATCHv7 08/16] x86/tdx: Account shared memory

2024-02-25 Thread Kirill A. Shutemov
On Fri, Feb 23, 2024 at 11:08:18AM -0800, Dave Hansen wrote: > On 2/12/24 02:44, Kirill A. Shutemov wrote: > > The kernel will convert all shared memory back to private during kexec. > > The direct mapping page tables will provide information on which memory > > is shared. > > > > It is extremely

Re: [PATCHv7 10/16] x86/tdx: Convert shared memory back to private on kexec

2024-02-25 Thread Kirill A. Shutemov
On Fri, Feb 23, 2024 at 11:39:07AM -0800, Dave Hansen wrote: > On 2/12/24 02:44, Kirill A. Shutemov wrote: > > +static void tdx_kexec_stop_conversion(bool crash) > > +{ > > + /* Stop new private<->shared conversions */ > > + conversion_allowed = false; > > + > > + /* > > +* Make sure