summaryrefslogtreecommitdiff
path: root/kexec/arch
diff options
context:
space:
mode:
authorXunlei Pang <xlpang@redhat.com>2017-03-23 19:16:59 +0800
committerSimon Horman <horms@verge.net.au>2017-03-24 07:43:16 +0100
commit4a6d67d9e938a7accf128aff23f8ad4bda67f729 (patch)
tree866e7ebb65fba4abe889d5ea49eb304fd778f77d /kexec/arch
parent0516f46adbf3da74da9971d39b4f8b50cd83d3f5 (diff)
x86: Support large number of memory ranges
We got a problem on one SGI 64TB machine, the current kexec-tools failed to work due to the insufficient ranges(MAX_MEMORY_RANGES) allowed which is defined as 1024(less than the ranges on the machine). The kcore header is insufficient due to the same reason as well. To solve this, this patch simply doubles "MAX_MEMORY_RANGES" and "KCORE_ELF_HEADERS_SIZE". Signed-off-by: Xunlei Pang <xlpang@redhat.com> Tested-by: Frank Ramsay <frank.ramsay@hpe.com> Signed-off-by: Simon Horman <horms@verge.net.au>
Diffstat (limited to 'kexec/arch')
-rw-r--r--kexec/arch/i386/kexec-x86.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kexec/arch/i386/kexec-x86.h b/kexec/arch/i386/kexec-x86.h
index 33df352..51855f8 100644
--- a/kexec/arch/i386/kexec-x86.h
+++ b/kexec/arch/i386/kexec-x86.h
@@ -1,7 +1,7 @@
#ifndef KEXEC_X86_H
#define KEXEC_X86_H
-#define MAX_MEMORY_RANGES 1024
+#define MAX_MEMORY_RANGES 2048
enum coretype {
CORE_TYPE_UNDEF = 0,