KVM: SVM: remove unnecessary check on INIT intercept
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 19 Aug 2022 16:56:43 +0000 (12:56 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Sep 2022 16:02:28 +0000 (12:02 -0400)
commitdb25eb87ad42f6eb3dcc045e760fc9e23df3e845
tree5b93cdf898d63270dda20ba3718b518a47f585d8
parentafe30b59d30b80d91c70664f58c05ba149ef3a5d
KVM: SVM: remove unnecessary check on INIT intercept

Since svm_check_nested_events() is now handling INIT signals, there is
no need to latch it until the VMEXIT is injected.  The only condition
under which INIT signals are latched is GIF=0.

Suggested-by: Maxim Levitsky <mlevitsk@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20220819165643.83692-1-pbonzini@redhat.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c