]> xenbits.xensource.com Git - xen.git/commit
x86/traps: const-correctness for IST handlers
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 10 Jun 2014 11:13:47 +0000 (13:13 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 10 Jun 2014 11:13:47 +0000 (13:13 +0200)
commitb6100a6cd5b9ff6de07726e3acf744454926c962
tree61064a54851a1b3292a30c760885778f87db65af
parent9921387f0c14a3f0ed42f9112efb7260af13db35
x86/traps: const-correctness for IST handlers

NMI and MCE interrupt handlers have no right to modify their exception frame
or underlying vcpu registers.  Apply liberal quantities of 'const' to 'struct
cpu_user_regs *' throughout the codebase.

The Double Fault handler, while an IST handler, reloads some extra
architectural state back into its regs parameter.  As this is for printing
purposes and on a terminal error path, the const requirements for #DF are
relaxed.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
21 files changed:
xen/arch/x86/alternative.c
xen/arch/x86/cpu/mcheck/mcaction.c
xen/arch/x86/cpu/mcheck/mcaction.h
xen/arch/x86/cpu/mcheck/mce.c
xen/arch/x86/cpu/mcheck/mce.h
xen/arch/x86/cpu/mcheck/mce_amd.c
xen/arch/x86/cpu/mcheck/mce_intel.c
xen/arch/x86/cpu/mcheck/x86_mca.h
xen/arch/x86/nmi.c
xen/arch/x86/oprofile/nmi_int.c
xen/arch/x86/oprofile/op_model_athlon.c
xen/arch/x86/oprofile/op_model_p4.c
xen/arch/x86/oprofile/op_model_ppro.c
xen/arch/x86/oprofile/op_x86_model.h
xen/arch/x86/traps.c
xen/arch/x86/x86_64/compat/traps.c
xen/arch/x86/x86_64/traps.c
xen/include/asm-x86/apic.h
xen/include/asm-x86/nmi.h
xen/include/asm-x86/processor.h
xen/include/asm-x86/traps.h