|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [xen staging] x86/traps: Make nmi_show_execution_state() more useful
commit 0f2611c524385f7bffeee67635a488a5a29b6ba4
Author: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
AuthorDate: Fri Aug 12 18:25:55 2022 +0100
Commit: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
CommitDate: Wed Aug 17 12:50:48 2022 +0100
x86/traps: Make nmi_show_execution_state() more useful
* Always emit current. It's critically important.
* Do not render (0000000000000000) for the symbol in guest context. It's
just line-noise. Instead, explicitly identify which Xen vs guest
context.
* Try to tabulate the data, because there is often lots of it.
Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
Reviewed-by: Jan Beulich <jbeulich@xxxxxxxx>
---
xen/arch/x86/traps.c | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c
index b713ef7e77..7207390118 100644
--- a/xen/arch/x86/traps.c
+++ b/xen/arch/x86/traps.c
@@ -767,9 +767,13 @@ static int cf_check nmi_show_execution_state(
if ( opt_show_all )
show_execution_state(regs);
+ else if ( guest_mode(regs) )
+ printk(XENLOG_ERR "CPU%d\t%pv\t%04x:%p in guest\n",
+ cpu, current, regs->cs, _p(regs->rip));
else
- printk(XENLOG_ERR "CPU%d @ %04x:%08lx (%pS)\n", cpu, regs->cs,
- regs->rip, guest_mode(regs) ? NULL : _p(regs->rip));
+ printk(XENLOG_ERR "CPU%d\t%pv\t%04x:%p in Xen: %pS\n",
+ cpu, current, regs->cs, _p(regs->rip), _p(regs->rip));
+
cpumask_clear_cpu(cpu, &show_state_mask);
return 1;
--
generated by git-patchbot for /home/xen/git/xen.git#staging
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |