Re: [PATCH v2 1/7] s390/kdump: implement is_kdump_kernel()
From: Alexander Egorenkov
Date: Wed Oct 23 2024 - 07:17:57 EST
Hi David,
David Hildenbrand <david@xxxxxxxxxx> writes:
> Staring at the powerpc implementation:
>
> /*
> * Return true only when kexec based kernel dump capturing method is used.
> * This ensures all restritions applied for kdump case are not automatically
> * applied for fadump case.
> */
> bool is_kdump_kernel(void)
> {
> return !is_fadump_active() && elfcorehdr_addr != ELFCORE_ADDR_MAX;
> }
> EXPORT_SYMBOL_GPL(is_kdump_kernel);
Thanks for the pointer.
I would say power's version is semantically equivalent to what i have in
mind for s390 :) If a dump kernel is running, but not a stand-alone
one (apart from sa kdump), then it's a kdump kernel.
Regards
Alex