]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit16f5b2c6a195195d2b76429deffab7c29487cbbc
tree78f4398a71ad14fa286fec0948c04c3d6f543782
parentc60bee59b3e74001a2234c2f5323042cc107a0f9
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