[PATCH V2 1/3] perf ignore LBR and offcore_rsp.

2014-07-02 Thread kan . liang
From: Kan Liang x86, perf: Protect LBR and offcore rsp against KVM lying With -cpu host, KVM reports LBR and offcore support, if the host has support. When the guest perf driver tries to access LBR or offcore_rsp MSR, it #GPs all MSR accesses,since KVM doesn't handle LBR and offcore support. So

Re: [PATCH V2 1/3] perf ignore LBR and offcore_rsp.

2014-07-02 Thread Andi Kleen
> Signed-off-by: Andi Kleen I did not contribute to this patch, so please remove that SOB. > Signed-off-by: Kan Liang > struct extra_reg *extra_regs; > unsigned int er_flags; > + boolextra_msr_access; /* EXTRA REG MSR can be > accessed */ > This doesn't

Re: [PATCH V2 1/3] perf ignore LBR and offcore_rsp.

2014-07-02 Thread Jidong Xiao
On Wed, Jul 2, 2014 at 2:14 PM, wrote: > From: Kan Liang > > x86, perf: Protect LBR and offcore rsp against KVM lying > > With -cpu host, KVM reports LBR and offcore support, if the host has support. > When the guest perf driver tries to access LBR or offcore_rsp MSR, > it #GPs all MSR accesses,

RE: [PATCH V2 1/3] perf ignore LBR and offcore_rsp.

2014-07-02 Thread Liang, Kan
> > Signed-off-by: Andi Kleen > > I did not contribute to this patch, so please remove that SOB. > OK > > Signed-off-by: Kan Liang > > > struct extra_reg *extra_regs; > > unsigned int er_flags; > > + boolextra_msr_access; /* EXTRA REG MSR can be > accessed */

RE: [PATCH V2 1/3] perf ignore LBR and offcore_rsp.

2014-07-02 Thread Liang, Kan
> > On Wed, Jul 2, 2014 at 2:14 PM, wrote: > > From: Kan Liang > > > > x86, perf: Protect LBR and offcore rsp against KVM lying > > > > With -cpu host, KVM reports LBR and offcore support, if the host has > support. > > When the guest perf driver tries to access LBR or offcore_rsp MSR, it > >