summaryrefslogtreecommitdiff
path: root/include/linux/sizes.h
diff options
context:
space:
mode:
authorBaoquan He <bhe@redhat.com>2019-05-24 15:38:10 +0800
committerThomas Gleixner <tglx@linutronix.de>2019-06-28 07:14:59 +0200
commit8ff80fbe7e9870078b1cc3c2cdd8f3f223b333a9 (patch)
treeee44f3418b39e544da7b06dcbf90e6c09f07ad68 /include/linux/sizes.h
parentee338b9ee2822e65a85750da6129946c14962410 (diff)
x86/kdump/64: Restrict kdump kernel reservation to <64TB
Restrict kdump to only reserve crashkernel below 64TB. The reaons is that the kdump may jump from a 5-level paging mode to a 4-level paging mode kernel. If a 4-level paging mode kdump kernel is put above 64TB, then the kdump kernel cannot start. The 1st kernel reserves the kdump kernel region during bootup. At that point it is not known whether the kdump kernel has 5-level or 4-level paging support. To support both restrict the kdump kernel reservation to the lower 64TB address space to ensure that a 4-level paging mode kdump kernel can be loaded and successfully started. [ tglx: Massaged changelog ] Signed-off-by: Baoquan He <bhe@redhat.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Acked-by: Dave Young <dyoung@redhat.com> Cc: bp@alien8.de Cc: hpa@zytor.com Link: https://lkml.kernel.org/r/20190524073810.24298-4-bhe@redhat.com
Diffstat (limited to 'include/linux/sizes.h')
-rw-r--r--include/linux/sizes.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/sizes.h b/include/linux/sizes.h
index fbde0bc7e882..8651269cb46c 100644
--- a/include/linux/sizes.h
+++ b/include/linux/sizes.h
@@ -47,5 +47,6 @@
#define SZ_2G 0x80000000
#define SZ_4G _AC(0x100000000, ULL)
+#define SZ_64T _AC(0x400000000000, ULL)
#endif /* __LINUX_SIZES_H__ */