x86/traps: Clean up diagnostics
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Oct 2021 12:40:17 +0000 (13:40 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 17 Dec 2021 17:03:54 +0000 (17:03 +0000)
commit8e3edefb880caeeaaf80123d5599139e8c2c9ecf
tree99f756e617d4aac279081616c7dd1dc28b74cd9f
parent327db3837a223dd0772348192126302852de5762
x86/traps: Clean up diagnostics

do{_unhandled,}_trap() should use fatal_trap() rather than opencoding part of
it.  This lets the remote stack trace logic work in more fatal error
conditions.

With do_trap() converted, there is only one single user of trapstr()
remaining.  Tweak the formatting in pv_inject_event(), and remove trapstr()
entirely.  Rename vec_name() to vector_name() now that it is exported.

Take the opportunity of vector_name() being exported to improve the
diagnostics in stub_selftest().

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