Files
linux/arch/s390/include/asm
David Hildenbrand 82a0fcb1ad s390/kdump: Provide is_kdump_kernel() implementation
s390 sets "elfcorehdr_addr = ELFCORE_ADDR_MAX;" early during
setup_arch() to deactivate the "elfcorehdr= kernel" parameter,
resulting in is_kdump_kernel() returning "false".

During vmcore_init()->elfcorehdr_alloc(), if on a dump kernel and
allocation succeeded, elfcorehdr_addr will be set to a valid address
and is_kdump_kernel() will consequently return "true".

is_kdump_kernel() should return a consistent result during all boot
stages, and properly return "true" if in a kdump environment - just
like it is done on powerpc where "false" is indicated in fadump
environments, as added in commit b098f1c323 ("powerpc/fadump: make
is_kdump_kernel() return false when fadump is active").

Similarly provide a custom is_kdump_kernel() implementation that will only
return "true" in kdump environments, and will do so consistently during
boot.

Update the documentation of dump_available().

Signed-off-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Link: https://lore.kernel.org/r/20241023090651.1115507-1-david@redhat.com
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
2024-10-25 16:03:23 +02:00
..
2024-07-03 19:30:24 -07:00
2020-08-26 18:47:21 +02:00
2023-06-05 09:36:39 +02:00
2023-07-24 12:12:24 +02:00
2020-12-16 14:55:49 +01:00
2023-02-15 11:07:01 +01:00
2022-12-06 16:18:22 +01:00
2023-10-02 08:43:00 +02:00
2024-09-17 01:06:59 -07:00
2024-08-29 22:56:35 +02:00
2024-08-29 22:56:35 +02:00
2022-05-11 14:40:57 +02:00
2024-07-03 19:30:25 -07:00
2024-08-29 22:56:35 +02:00
2021-06-18 16:41:21 +02:00
2022-01-30 21:17:00 -05:00