summaryrefslogtreecommitdiff
path: root/kexec/kexec.h
diff options
context:
space:
mode:
authorPetr Tesarik <ptesarik@suse.com>2015-09-24 08:48:52 +0200
committerSimon Horman <horms@verge.net.au>2015-10-06 17:52:32 +0900
commit4fbf781eb0383a491906d3851b066657b29c2816 (patch)
tree3069c2b46260a1e0af012ea8fda973d943997cb7 /kexec/kexec.h
parent6fd80e245e3877a8213ca788caea58d08e40264e (diff)
downloadkexec-tools-4fbf781eb0383a491906d3851b066657b29c2816.tar.gz
Load crash kernel high on x86
There may be more than one crash kernel regions on x86. Currently, kexec-tools picks the largest one. If high reservation is smaller than low, it will try to load panic kernel low. However, the kexec syscall checks that target address is within crashk_res boundaries, so attempts to load crash kernel low result in -EADDRNOTAVAIL, and kexec prints out this error message: kexec_load failed: Cannot assign requested address Looking at the logic in arch/x86/kernel/setup.c, there are only two possible layouts: 1. crashk_res is below 4G, and there is only one region, 2. crashk_res is above 4G, and crashk_low_res is below 4G In either case, kexec-tools must pick the highest region. Changelog: * v3: rename function to get_crash_kernel_load_range * v2: remove unnecessary local variables Signed-off-by: Petr Tesarik <ptesarik@suse.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/kexec.h')
-rw-r--r--kexec/kexec.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/kexec.h b/kexec/kexec.h
index 0fa977f..7c97b25 100644
--- a/kexec/kexec.h
+++ b/kexec/kexec.h
@@ -288,7 +288,7 @@ int arch_process_options(int argc, char **argv);
int arch_compat_trampoline(struct kexec_info *info);
void arch_update_purgatory(struct kexec_info *info);
int is_crashkernel_mem_reserved(void);
-int get_max_crash_kernel_limit(uint64_t *start, uint64_t *end);
+int get_crash_kernel_load_range(uint64_t *start, uint64_t *end);
char *get_command_line(void);
int kexec_iomem_for_each_line(char *match,