kvm: external module: allow kprobes to run on top of preempt emulation
commit8412a5681a34405daaa9e5655cf55e2c926adb57
authorAndrea Arcangeli <andrea@qumranet.com>
Wed, 4 Jun 2008 23:09:33 +0000 (5 01:09 +0200)
committerAvi Kivity <avi@qumranet.com>
Thu, 5 Jun 2008 07:06:30 +0000 (5 10:06 +0300)
tree220ff3c5186f692058026fe1007f2539952a84b3
parentf4962166eddb3332ef423d9d7dbc0735cc962697
kvm: external module: allow kprobes to run on top of preempt emulation

This patch makes preempt emulation more strict in differentiating its
own dr0 hardware breakpoint from a singlestep in return from kprobes
pre-handler that will invoke the post-handler through int1 debug TS on
eflags. This avoids GPF when kprobes returns from pre-handler with the
dr7 loaded with preempt emulation.

Signed-off-by: Andrea Arcangeli <andrea@qumranet.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
kvm/kernel/preempt.c