]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: nVMX: promptly process interrupts delivered while in guest mode
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Oct 2021 10:22:59 +0000 (06:22 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 21 Oct 2021 07:35:42 +0000 (03:35 -0400)
commitb602e04543606a0b1832ecb2d9ae644250f856ea
tree7dcffe974e927a2ce1f358e0622a5cad9c61da59
parent6c61bf58b3a0114ea2ea9e699f98c000973e9219
KVM: nVMX: promptly process interrupts delivered while in guest mode

Since commit d6f664c75bc3 ("KVM: x86: Replace late check_nested_events() hack with
more precise fix") there is no longer the certainty that check_nested_events()
tries to inject an external interrupt vmexit to L1 on every call to vcpu_enter_guest.
Therefore, even in that case we need to set KVM_REQ_EVENT.  This ensures
that inject_pending_event() is called, and from there kvm_check_nested_events().

Fixes: d6f664c75bc3 ("KVM: x86: Replace late check_nested_events() hack with more precise fix")
Cc: stable@vger.kernel.org
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c