Commit 31031098 authored by Paolo Bonzini's avatar Paolo Bonzini

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: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 2d8a42be
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment