Skip to content

kexec: Add option to get crash kernel region size

Daniel Kiper kexec lkml xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest14 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/14purgatory: Add purgatory.map and purgatory.ro.sym to clean recipepurgatory/Makefile+1 -10 replies
1/14purgatory: Add purgatory.map and purgatory.ro.sym to clean recipepurgatory/Makefile+1 -10 replies
2/14kexec: Remove redundant space from help messagekexec/kexec.c+1 -10 replies
2/14kexec: Remove redundant space from help messagekexec/kexec.c+1 -10 replies
3/14crashdump: Remove stray get_crashkernel_region() declarationkexec/crashdump.h+0 -10 replies
3/14crashdump: Remove stray get_crashkernel_region() declarationkexec/crashdump.h+0 -10 replies
4/14crashdump/x86: Add print_crashkernel_region_size() functionkexec/arch/i386/crashdump-x86.c+17 -10 replies
4/14crashdump/x86: Add print_crashkernel_region_size() functionkexec/arch/i386/crashdump-x86.c+17 -10 replies
5/14crashdump/arm: Add print_crashkernel_region_size() functionkexec/arch/arm/crashdump-arm.c+10 -00 replies
5/14crashdump/arm: Add print_crashkernel_region_size() functionkexec/arch/arm/crashdump-arm.c+10 -00 replies
6/14crashdump/cris: Add print_crashkernel_region_size() functionkexec/arch/cris/kexec-cris.c+5 -02 replies
6/14crashdump/cris: Add print_crashkernel_region_size() functionkexec/arch/cris/kexec-cris.c+5 -00 replies
7/14crashdump/ia64: Add print_crashkernel_region_size() functionkexec/arch/ia64/crashdump-ia64.c+10 -00 replies
7/14crashdump/ia64: Add print_crashkernel_region_size() functionkexec/arch/ia64/crashdump-ia64.c+10 -00 replies
8/14crashdump/m68k: Add print_crashkernel_region_size() functionkexec/arch/m68k/kexec-m68k.c+5 -00 replies
8/14crashdump/m68k: Add print_crashkernel_region_size() functionkexec/arch/m68k/kexec-m68k.c+5 -00 replies
9/14crashdump/mips: Add print_crashkernel_region_size() functionkexec/arch/mips/crashdump-mips.c+9 -00 replies
9/14crashdump/mips: Add print_crashkernel_region_size() functionkexec/arch/mips/crashdump-mips.c+9 -00 replies
10/14crashdump/ppc: Add print_crashkernel_region_size() functionkexec/arch/ppc/crashdump-powerpc.c+4 -02 replies
10/14crashdump/ppc: Add print_crashkernel_region_size() functionkexec/arch/ppc/crashdump-powerpc.c+4 -00 replies
11/14crashdump/ppc64: Add print_crashkernel_region_size() functionkexec/arch/ppc64/crashdump-ppc64.c+5 -02 replies
11/14crashdump/ppc64: Add print_crashkernel_region_size() functionkexec/arch/ppc64/crashdump-ppc64.c+5 -00 replies
12/14crashdump/s390: Add print_crashkernel_region_size() functionkexec/arch/s390/kexec-s390.c+10 -00 replies
12/14crashdump/s390: Add print_crashkernel_region_size() functionkexec/arch/s390/kexec-s390.c+10 -00 replies
13/14crashdump/sh: Add print_crashkernel_region_size() functionkexec/arch/sh/crashdump-sh.c+10 -00 replies
13/14crashdump/sh: Add print_crashkernel_region_size() functionkexec/arch/sh/crashdump-sh.c+10 -00 replies
14/14kexec: Add option to get crash kernel region sizekexec/kexec.8 kexec/kexec.c kexec/kexec.h+11 -10 replies
14/14kexec: Add option to get crash kernel region sizekexec/kexec.8 kexec/kexec.c kexec/kexec.h+11 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/14] kexec: Add option to get crash kernel region size

Crash kernel region size is available via sysfs on Linux running on bare metal. However, this does not work when Linux runs as Xen dom0. In this case Xen crash kernel region size should be established using __HYPERVISOR_kexec_op hypercall (Linux kernel kexec functionality does not make a lot of sense in Xen dom0). Sadly hypercalls are not easily accessible using shell scripts or something like that. Potentially we can check "xl dmesg" output for crashkernel option but this is not nice. So, let's add this functionality, for Linux running on bare metal and as Xen dom0, to kexec-tools. This way kdump scripts may establish crash kernel region size in one way regardless of platform. All burden of platform detection lies on kexec-tools.

Figure (and unit) displayed by this new kexec-tools functionality is the same as one taken from /sys/kernel/kexec_crash_size.

First three patches are fixes and cleanups. The rest provides above described functionality for all supported platforms.

Daniel

 kexec/arch/arm/crashdump-arm.c     |   10 ++++++++++
 kexec/arch/cris/kexec-cris.c       |    5 +++++
 kexec/arch/i386/crashdump-x86.c    |   18 +++++++++++++++++-
 kexec/arch/ia64/crashdump-ia64.c   |   10 ++++++++++
 kexec/arch/m68k/kexec-m68k.c       |    5 +++++
 kexec/arch/mips/crashdump-mips.c   |    9 +++++++++
 kexec/arch/ppc/crashdump-powerpc.c |    4 ++++
 kexec/arch/ppc64/crashdump-ppc64.c |    5 +++++
 kexec/arch/s390/kexec-s390.c       |   10 ++++++++++
 kexec/arch/sh/crashdump-sh.c       |   10 ++++++++++
 kexec/crashdump.h                  |    1 -
 kexec/kexec.8                      |    3 +++
 kexec/kexec.c                      |    6 +++++-
 kexec/kexec.h                      |    5 ++++-
 purgatory/Makefile                 |    2 +-
 15 files changed, 98 insertions(+), 5 deletions(-)

Daniel Kiper (14):
purgatory: Add purgatory.map and purgatory.ro.sym to clean recipe
kexec: Remove redundant space from help message
crashdump: Remove stray get_crashkernel_region() declaration crashdump/x86: Add print_crashkernel_region_size() function crashdump/arm: Add print_crashkernel_region_size() function crashdump/cris: Add print_crashkernel_region_size() function crashdump/ia64: Add print_crashkernel_region_size() function crashdump/m68k: Add print_crashkernel_region_size() function crashdump/mips: Add print_crashkernel_region_size() function crashdump/ppc: Add print_crashkernel_region_size() function crashdump/ppc64: Add print_crashkernel_region_size() function crashdump/s390: Add print_crashkernel_region_size() function crashdump/sh: Add print_crashkernel_region_size() function
kexec: Add option to get crash kernel region size

_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec