RE: [PATCH v3 5/5] KVM/x86/lbr: lazy save the guest lbr stack

2018-09-27 Thread Wang, Wei W
On Thursday, September 20, 2018 8:08 PM, Gonglei (Arei) wrote: > > +static bool guest_access_lbr_msr(struct kvm_vcpu *vcpu, > > +struct msr_data *msr_info, > > +bool set) > > +{ > > + bool ret = false; > > + > > + if (!vcpu->kvm->arch.gues

Re: [PATCH v3 5/5] KVM/x86/lbr: lazy save the guest lbr stack

2018-09-20 Thread Peter Zijlstra
On Thu, Sep 20, 2018 at 08:58:16PM +0800, Wei Wang wrote: > On 09/20/2018 08:37 PM, Peter Zijlstra wrote: > > On Thu, Sep 20, 2018 at 06:05:59PM +0800, Wei Wang wrote: > > > /** > > > + * lbr_select_user_callstack - check if the user callstack mode is set > > > + * > > > + * @lbr_select: the lbr

Re: [PATCH v3 5/5] KVM/x86/lbr: lazy save the guest lbr stack

2018-09-20 Thread Wei Wang
On 09/20/2018 08:37 PM, Peter Zijlstra wrote: On Thu, Sep 20, 2018 at 06:05:59PM +0800, Wei Wang wrote: /** + * lbr_select_user_callstack - check if the user callstack mode is set + * + * @lbr_select: the lbr select msr + * + * Returns: true if the msr is configured to the user callstack mode.

Re: [PATCH v3 5/5] KVM/x86/lbr: lazy save the guest lbr stack

2018-09-20 Thread Peter Zijlstra
On Thu, Sep 20, 2018 at 06:05:59PM +0800, Wei Wang wrote: > /** > + * lbr_select_user_callstack - check if the user callstack mode is set > + * > + * @lbr_select: the lbr select msr > + * > + * Returns: true if the msr is configured to the user callstack mode. > + * Otherwise, false. > + * > + */

RE: [PATCH v3 5/5] KVM/x86/lbr: lazy save the guest lbr stack

2018-09-20 Thread Gonglei (Arei)
> -Original Message- > From: Wei Wang [mailto:wei.w.w...@intel.com] > Sent: Thursday, September 20, 2018 6:06 PM > To: linux-kernel@vger.kernel.org; k...@vger.kernel.org; pbonz...@redhat.com; > a...@linux.intel.com > Cc: kan.li...@intel.com; pet...@infradead.org; mi...@redhat.com; > rkrc.