[PATCH 2/3] perf: require exclude_guest to use PEBS - kernel side enforcement

2012-09-13 Thread David Ahern
From: Peter Zijlstra Per Peter: "Intel PEBS in VT-x context uses the DS address as a guest linear address, even though its programmed by the host as a host linear address. This either results in guest memory corruption and or the hardware faulting and 'crashing' the virtual machine. Ther

Re: [PATCH 2/3] perf: require exclude_guest to use PEBS - kernel side enforcement

2012-09-12 Thread Arnaldo Carvalho de Melo
Em Wed, Sep 12, 2012 at 10:33:36PM -0600, David Ahern escreveu: > On 9/12/12 8:38 PM, Namhyung Kim wrote: > >I see a whitespace problem here. :) > > grr an extra freaking tab. As people say down here, it happens, even in the best families... :-P - Arnaldo $ shutdown now tho -- To unsubscrib

Re: [PATCH 2/3] perf: require exclude_guest to use PEBS - kernel side enforcement

2012-09-12 Thread David Ahern
On 9/12/12 8:38 PM, Namhyung Kim wrote: Hi David, On Wed, 12 Sep 2012 09:16:29 -0600, David Ahern wrote: From: Peter Zijlstra Per Peter: "Intel PEBS in VT-x context uses the DS address as a guest linear address, even though its programmed by the host as a host linear address. This ei

Re: [PATCH 2/3] perf: require exclude_guest to use PEBS - kernel side enforcement

2012-09-12 Thread Namhyung Kim
Hi David, On Wed, 12 Sep 2012 09:16:29 -0600, David Ahern wrote: > From: Peter Zijlstra > > Per Peter: > "Intel PEBS in VT-x context uses the DS address as a guest linear address, > even though its programmed by the host as a host linear address. This > either results in guest memory corrup

[PATCH 2/3] perf: require exclude_guest to use PEBS - kernel side enforcement

2012-09-12 Thread David Ahern
From: Peter Zijlstra Per Peter: "Intel PEBS in VT-x context uses the DS address as a guest linear address, even though its programmed by the host as a host linear address. This either results in guest memory corruption and or the hardware faulting and 'crashing' the virtual machine. Ther

Re: [PATCH 2/3] perf: require exclude_guest to use PEBS - kernel side enforcement

2012-09-10 Thread Peter Zijlstra
On Mon, 2012-09-10 at 10:40 -0600, David Ahern wrote: > From: Peter Zijlstra > > See https://lkml.org/lkml/2012/7/9/298 Expanding that a little would be so much better.. take some of the reply to 1/3 on why we have to enforce a strict exclude_guest. -- To unsubscribe from this list: send the li

[PATCH 2/3] perf: require exclude_guest to use PEBS - kernel side enforcement

2012-09-10 Thread David Ahern
From: Peter Zijlstra See https://lkml.org/lkml/2012/7/9/298 Signed-off-by: David Ahern Cc: Ingo Molnar Cc: Peter Zijlstra Cc: Robert Richter Cc: Gleb Natapov Cc: Avi Kivity --- arch/x86/kernel/cpu/perf_event.c |6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/x86/kernel/cp