x86/cpu_entry_area: Provide exception stack accessor
authorThomas Gleixner <tglx@linutronix.de>
Sun, 14 Apr 2019 15:59:49 +0000 (17:59 +0200)
committerBorislav Petkov <bp@suse.de>
Wed, 17 Apr 2019 11:00:22 +0000 (13:00 +0200)
commit7623f37e411156e6e09b95cf5c76e509c5fda640
tree4453bae0400beefac913febe3d0d75112ab5224f
parenta4af767ae59cc579569bbfe49513a0037d5989ee
x86/cpu_entry_area: Provide exception stack accessor

Store a pointer to the per cpu entry area exception stack mappings to allow
fast retrieval.

Required for converting various places from using the shadow IST array to
directly doing address calculations on the actual mapping address.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Cc: Andy Lutomirski <luto@kernel.org>
Cc: Dave Hansen <dave.hansen@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Josh Poimboeuf <jpoimboe@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sean Christopherson <sean.j.christopherson@intel.com>
Cc: x86-ml <x86@kernel.org>
Link: https://lkml.kernel.org/r/20190414160144.680960459@linutronix.de
arch/x86/include/asm/cpu_entry_area.h
arch/x86/mm/cpu_entry_area.c