From: Paolo Bonzini Date: Fri, 22 May 2020 16:33:52 +0000 (-0400) Subject: KVM: nSVM: remove unnecessary if X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=31031098feb9e1233176896d31eaf766c13429df;p=linux.git KVM: nSVM: remove unnecessary if kvm_vcpu_apicv_active must be false when nested virtualization is enabled, so there is no need to check it in clgi_interception. Signed-off-by: Paolo Bonzini --- diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index b710e62ace163..7383f821eb3b3 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -2015,8 +2015,7 @@ static int clgi_interception(struct vcpu_svm *svm) disable_gif(svm); /* After a CLGI no interrupts should come */ - if (!kvm_vcpu_apicv_active(&svm->vcpu)) - svm_clear_vintr(svm); + svm_clear_vintr(svm); return ret; }