x86/idt: Factor out enabling and disabling of ISTs
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 19 Oct 2017 15:11:28 +0000 (15:11 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 19 Jan 2018 18:16:14 +0000 (18:16 +0000)
commitf9fc2e584ddf3cf3b0b2a7b08dbc3ac3a70ddab3
tree839b95b47279d7538271cb84c8c36fa99bc7b7c9
parent78aca253029b4e51e49f4ed5d802c4a16bf6e89b
x86/idt: Factor out enabling and disabling of ISTs

All alteration of IST settings (other than the crash path) happen in an
identical triple.  Introduce helpers to keep the triple in sync, and reduce
the risk of opencoded mistakes.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/cpu/common.c
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/smpboot.c
xen/arch/x86/traps.c
xen/include/asm-x86/processor.h