x86/traps: Clean up printing in {do_reserved,fatal}_trap()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 30 Apr 2020 14:05:24 +0000 (15:05 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 29 May 2020 22:09:46 +0000 (23:09 +0100)
commitd91c145e021a5a0eca774ee112ab8e79fef85f16
tree5f9437a8d2fc400c56f8d75147080d22d5ba0f3b
parent5e1783880d6948ea5c8fad6dd64af6e44a1e32ab
x86/traps: Clean up printing in {do_reserved,fatal}_trap()

For one, they render the vector in a different base.

Introduce X86_EXC_* constants and vec_name() to refer to exceptions by their
mnemonic, which starts bringing the code/diagnostics in line with the Intel
and AMD manuals.

Provide constants for every archtiecturally defined exception, even those not
implemented by Xen yet, as do_reserved_trap() is a catch-all handler.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/traps.c
xen/include/asm-x86/processor.h
xen/include/asm-x86/x86-defns.h