From 309e0509b7363a895362fcbeac823562c3e18def Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Tue, 6 Feb 2018 17:29:59 +0100 Subject: [PATCH] x86/NMI: invert condition in nmi_show_execution_state() We want to decode the symbol when _not_ in guest mode. Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper --- xen/arch/x86/traps.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/traps.c b/xen/arch/x86/traps.c index 1187fd9c25..2e022b09b8 100644 --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -632,7 +632,7 @@ static int nmi_show_execution_state(const struct cpu_user_regs *regs, int cpu) show_execution_state(regs); else printk(XENLOG_ERR "CPU%d @ %04x:%08lx (%pS)\n", cpu, regs->cs, - regs->rip, guest_mode(regs) ? _p(regs->rip) : NULL); + regs->rip, guest_mode(regs) ? NULL : _p(regs->rip)); cpumask_clear_cpu(cpu, &show_state_mask); return 1; -- 2.30.2