RE: [PATCH v6 04/12] KVM: SVM: Modify intercept_exceptions to generic intercepts

2020-09-23 Thread Babu Moger
nel.org; linux- > ker...@vger.kernel.org; mi...@redhat.com; b...@alien8.de; h...@zytor.com; > t...@linutronix.de > Subject: Re: [PATCH v6 04/12] KVM: SVM: Modify intercept_exceptions to > generic intercepts > > On 22/09/20 21:11, Babu Moger wrote: > > > > > >> -Origin

Re: [PATCH v6 04/12] KVM: SVM: Modify intercept_exceptions to generic intercepts

2020-09-22 Thread Paolo Bonzini
..@tencent.com; k...@vger.kernel.org; >> j...@8bytes.org; x...@kernel.org; linux-kernel@vger.kernel.org; >> mi...@redhat.com; b...@alien8.de; h...@zytor.com; t...@linutronix.de >> Subject: Re: [PATCH v6 04/12] KVM: SVM: Modify intercept_exceptions to >> generic intercepts >> >>

RE: [PATCH v6 04/12] KVM: SVM: Modify intercept_exceptions to generic intercepts

2020-09-22 Thread Babu Moger
nel.org; linux-kernel@vger.kernel.org; > mi...@redhat.com; b...@alien8.de; h...@zytor.com; t...@linutronix.de > Subject: Re: [PATCH v6 04/12] KVM: SVM: Modify intercept_exceptions to > generic intercepts > > On 14/09/20 17:06, Sean Christopherson wrote: > >> I think these should take

Re: [PATCH v6 04/12] KVM: SVM: Modify intercept_exceptions to generic intercepts

2020-09-22 Thread Paolo Bonzini
On 14/09/20 17:06, Sean Christopherson wrote: >> I think these should take a vector instead, and add 64 in the functions. > > And "s/int bit/u32 vector" + BUILD_BUG_ON(vector > 32)? Not sure if we can assume it to be constant, but WARN_ON_ONCE is good enough as far as performance is concerned.

Re: [PATCH v6 04/12] KVM: SVM: Modify intercept_exceptions to generic intercepts

2020-09-14 Thread Sean Christopherson
On Sat, Sep 12, 2020 at 06:52:20PM +0200, Paolo Bonzini wrote: > On 11/09/20 21:28, Babu Moger wrote: > > diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c > > index 1a5f3908b388..11892e86cb39 100644 > > --- a/arch/x86/kvm/svm/svm.c > > +++ b/arch/x86/kvm/svm/svm.c > > @@ -1003,11

Re: [PATCH v6 04/12] KVM: SVM: Modify intercept_exceptions to generic intercepts

2020-09-12 Thread Paolo Bonzini
On 11/09/20 21:28, Babu Moger wrote: > diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c > index 1a5f3908b388..11892e86cb39 100644 > --- a/arch/x86/kvm/svm/svm.c > +++ b/arch/x86/kvm/svm/svm.c > @@ -1003,11 +1003,11 @@ static void init_vmcb(struct vcpu_svm *svm) > >