KVM: SVM: Signal AVIC doorbell iff vCPU is in guest mode
authorSean Christopherson <seanjc@google.com>
Wed, 8 Dec 2021 01:52:20 +0000 (01:52 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Jan 2022 17:14:41 +0000 (12:14 -0500)
commit31f251d4ddfa464c6dd92ee873b9b223e992a085
tree78f4398a71ad14fa286fec0948c04c3d6f543782
parentc3e8abf0f3536a46a235b0533149c2b2c2bbac27
KVM: SVM: Signal AVIC doorbell iff vCPU is in guest mode

Signal the AVIC doorbell iff the vCPU is running in the guest.  If the vCPU
is not IN_GUEST_MODE, it's guaranteed to pick up any pending IRQs on the
next VMRUN, which unconditionally processes the vIRR.

Add comments to document the logic.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20211208015236.1616697-11-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/avic.c