KVM: x86: lapic does not have to process INIT if it is blocked
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 21 Sep 2022 00:31:54 +0000 (00:31 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 26 Sep 2022 16:37:19 +0000 (12:37 -0400)
commitbf7f9352af5d184f28d352a58cb9230e404f8c5c
tree72d55dcef90b06db834d5859b7e4bc5b7dc6867b
parenta61353acc574d8d81f07f156d992e14e63d06e95
KVM: x86: lapic does not have to process INIT if it is blocked

Do not return true from kvm_vcpu_has_events() if the vCPU isn' going to
immediately process a pending INIT/SIPI.  INIT/SIPI shouldn't be treated
as wake events if they are blocked.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
[sean: rebase onto refactored INIT/SIPI helpers, massage changelog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20220921003201.1441511-6-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c