From 2bdf847f9991f5be1bdb3a47c0e796af935bdb3f Mon Sep 17 00:00:00 2001 From: Maxim Levitsky Date: Wed, 11 Aug 2021 17:02:14 +0300 Subject: [PATCH] KVM: x86: fix for force_intercept_exceptions_mask --- arch/x86/kvm/svm/svm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index 6f17569fd5c8..85e5a93fa79a 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -1166,8 +1166,7 @@ static void svm_init_force_exceptions_intercepts(struct vcpu_svm *svm) /* Those are defined to have undefined behavior in the SVM spec */ if (exc != 2 && exc != 9) - continue; - set_exception_intercept(svm, exc); + set_exception_intercept(svm, exc); } } -- 2.26.3