perf/x86: disable PEBS on a guest entry.
authorGleb Natapov <gleb@redhat.com>
Thu, 9 Aug 2012 08:52:34 +0000 (11:52 +0300)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 13 Aug 2012 17:01:04 +0000 (19:01 +0200)
commit26a4f3c08de49c1437a7b7f97693cf22d8c31656
tree3f1bafcd6e9cac2dfb0d26236d79fcc9ba970938
parentcb37af77124e8532e6ae3f9ca332593ba423b5f8
perf/x86: disable PEBS on a guest entry.

If PMU counter has PEBS enabled it is not enough to disable counter
on a guest entry since PEBS memory write can overshoot guest entry
and corrupt guest memory. Disabling PEBS during guest entry solves
the problem.

Tested-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/20120809085234.GI3341@redhat.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/cpu/perf_event_intel.c