]> git.baikalelectronics.ru Git - kernel.git/commit
kgdb, x86: Avoid invoking kgdb_nmicallback twice per NMI
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 6 Oct 2008 18:50:59 +0000 (13:50 -0500)
committerJason Wessel <jason.wessel@windriver.com>
Mon, 6 Oct 2008 18:50:59 +0000 (13:50 -0500)
commit09c04832facf29c3f29e5872ba14e90c90416e17
treec0ea708310452d42b35ea3eb422654fc4fd1f778
parent1db2f06dc56d44051eabc0fcdc58928d5cb77b81
kgdb, x86: Avoid invoking kgdb_nmicallback twice per NMI

Stress-testing KVM's latest NMI support with kgdbts inside an SMP guest,
I came across spurious unhandled NMIs while running the singlestep test.
Looking closer at the code path each NMI takes when KGDB is enabled, I
noticed that kgdb_nmicallback is called twice per event: One time via
DIE_NMI_IPI notification, the second time on DIE_NMI. Removing the first
invocation cures the unhandled NMIs here.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
arch/x86/kernel/kgdb.c