summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2020-05-22 18:33:52 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2020-06-01 10:26:01 +0200
commit31031098feb9e1233176896d31eaf766c13429df (patch)
tree24c14d170942837b0d1647dd3fc51bb36c210ef9 /arch/x86/kvm/svm
parentKVM: nSVM: synchronize VMCB controls updated by the processor on every vmexit (diff)
downloadlinux-31031098feb9e1233176896d31eaf766c13429df.tar.xz
linux-31031098feb9e1233176896d31eaf766c13429df.zip
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 <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm')
-rw-r--r--arch/x86/kvm/svm/svm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c
index b710e62ace16..7383f821eb3b 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;
}