]> bbs.cooldavid.org Git - net-next-2.6.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)
commit2c31b7958fd21df9fa04e5c36cda0f063ac70b27
treeeb6b7468b04cbe9fb13eb88aba94e0f28b3f4234
parent605bfaee9078cd0b01d83402315389839ee4bb5c
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