]> xenbits.xensource.com Git - people/dariof/xen.git/commitdiff
x86/NMI: invert condition in nmi_show_execution_state()
authorJan Beulich <jbeulich@suse.com>
Tue, 6 Feb 2018 16:29:59 +0000 (17:29 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 6 Feb 2018 16:29:59 +0000 (17:29 +0100)
We want to decode the symbol when _not_ in guest mode.

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

index 1187fd9c25ff7a7ff375fa5e0a6cfd94c8b92496..2e022b09b85a714d68966688ffa4ea1246db9537 100644 (file)
@@ -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;