]> 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)
commitabc16091dff17ca7b4222ebce06d4b6ee0f6065f
tree78f4398a71ad14fa286fec0948c04c3d6f543782
parent2962bee8bb6781b2c89b37f75d0f92bd94e112e6
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