]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
kexec: support for kexec on panic using new system call
authorVivek Goyal <vgoyal@redhat.com>
Fri, 8 Aug 2014 21:26:09 +0000 (14:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 8 Aug 2014 22:57:33 +0000 (15:57 -0700)
commitdd5f726076cc7639d9713b334c8c133f77c6757a
tree6b3e88bdf3e764d97eb88464e31abc097dab44f6
parent27f48d3e633be23656a097baa3be336e04a82d84
kexec: support for kexec on panic using new system call

This patch adds support for loading a kexec on panic (kdump) kernel usning
new system call.

It prepares ELF headers for memory areas to be dumped and for saved cpu
registers.  Also prepares the memory map for second kernel and limits its
boot to reserved areas only.

Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Cc: Borislav Petkov <bp@suse.de>
Cc: Michael Kerrisk <mtk.manpages@gmail.com>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Matthew Garrett <mjg59@srcf.ucam.org>
Cc: Greg Kroah-Hartman <greg@kroah.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: WANG Chao <chaowang@redhat.com>
Cc: Baoquan He <bhe@redhat.com>
Cc: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/x86/include/asm/crash.h [new file with mode: 0644]
arch/x86/include/asm/kexec.h
arch/x86/kernel/crash.c
arch/x86/kernel/kexec-bzimage64.c
arch/x86/kernel/machine_kexec_64.c
arch/x86/purgatory/entry64.S
kernel/kexec.c