lkml.org 
[lkml]   [2020]   [Sep]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v6 04/12] KVM: SVM: Modify intercept_exceptions to generic intercepts
From
Date
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)
>
> set_dr_intercepts(svm);
>
> - set_exception_intercept(svm, PF_VECTOR);
> - set_exception_intercept(svm, UD_VECTOR);
> - set_exception_intercept(svm, MC_VECTOR);
> - set_exception_intercept(svm, AC_VECTOR);
> - set_exception_intercept(svm, DB_VECTOR);
> + set_exception_intercept(svm, INTERCEPT_PF_VECTOR);
> + set_exception_intercept(svm, INTERCEPT_UD_VECTOR);
> + set_exception_intercept(svm, INTERCEPT_MC_VECTOR);
> + set_exception_intercept(svm, INTERCEPT_AC_VECTOR);
> + set_exception_intercept(svm, INTERCEPT_DB_VECTOR);

I think these should take a vector instead, and add 64 in the functions.

Paolo

\
 
 \ /
  Last update: 2020-09-12 18:53    [W:0.191 / U:4.140 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site