KVM: VMX: Re-enter guest in fastpath for "spurious" preemption timer exits
authorSean Christopherson <seanjc@google.com>
Wed, 10 Jan 2024 01:27:01 +0000 (17:27 -0800)
committerSean Christopherson <seanjc@google.com>
Fri, 23 Feb 2024 00:22:36 +0000 (16:22 -0800)
commite6b5d16bbd2d4c8259ad76aa33de80d561aba5f9
tree5adbd7861d80bf83043205c2f40f616db96780cb
parent9c9025ea003a03f967affd690f39b4ef3452c0f5
KVM: VMX: Re-enter guest in fastpath for "spurious" preemption timer exits

Re-enter the guest in the fast path if VMX preeemption timer VM-Exit was
"spurious", i.e. if KVM "soft disabled" the timer by writing -1u and by
some miracle the timer expired before any other VM-Exit occurred.  This is
just an intermediate step to cleaning up the preemption timer handling,
optimizing these types of spurious VM-Exits is not interesting as they are
extremely rare/infrequent.

Link: https://lore.kernel.org/r/20240110012705.506918-3-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/vmx.c