x86/traps: Disentangle the 32-bit and 64-bit doublefault code
authorAndy Lutomirski <luto@kernel.org>
Thu, 21 Nov 2019 06:12:38 +0000 (22:12 -0800)
committerIngo Molnar <mingo@kernel.org>
Tue, 26 Nov 2019 20:53:34 +0000 (21:53 +0100)
commit93efbde2c331004d8053f04b4bf0ca3e630b474a
treeda94642f314fb062e92a555eca60d8d072e98ae7
parentb09511c253e5c739a60952b97c071a93e92b2e88
x86/traps: Disentangle the 32-bit and 64-bit doublefault code

The 64-bit doublefault handler is much nicer than the 32-bit one.
As a first step toward unifying them, make the 64-bit handler
self-contained.  This should have no effect no functional effect
except in the odd case of x86_64 with CONFIG_DOUBLEFAULT=n in which
case it will change the logging a bit.

This also gets rid of CONFIG_DOUBLEFAULT configurability on 64-bit
kernels.  It didn't do anything useful -- CONFIG_DOUBLEFAULT=n
didn't actually disable doublefault handling on x86_64.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Cc: Borislav Petkov <bp@alien8.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
arch/x86/Kconfig.debug
arch/x86/include/asm/processor.h
arch/x86/kernel/doublefault.c
arch/x86/kernel/traps.c