]> git.baikalelectronics.ru Git - kernel.git/commit
x86/hw-breakpoints: Don't lose GE flag while disabling a breakpoint
authorFrederic Weisbecker <fweisbec@gmail.com>
Thu, 26 Nov 2009 05:04:38 +0000 (06:04 +0100)
committerIngo Molnar <mingo@elte.hu>
Thu, 26 Nov 2009 08:29:22 +0000 (09:29 +0100)
commitd968f6b1a1eb4994e202a39b861e90b9eb73660a
treeeb6b7468b04cbe9fb13eb88aba94e0f28b3f4234
parent63db2a6845bef37b059e5906cc7dae46c9e4c29e
x86/hw-breakpoints: Don't lose GE flag while disabling a breakpoint

When we schedule out a breakpoint from the cpu, we also
incidentally remove the "Global exact breakpoint" flag from the
breakpoint control register. It makes us losing the fine grained
precision about the origin of the instructions that may trigger
breakpoint exceptions for the other breakpoints running in this
cpu.

Reported-by: Prasad <prasad@linux.vnet.ibm.com>
Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com>
LKML-Reference: <1259211878-6013-1-git-send-regression-fweisbec@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/hw_breakpoint.c