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
> 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
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,
> > 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 */
>
> 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
> >