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)
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>

No differences found