KVM: VMX: Handle KVM-induced preemption timer exits in fastpath for L2
authorSean Christopherson <seanjc@google.com>
Wed, 10 Jan 2024 01:27:04 +0000 (17:27 -0800)
committerSean Christopherson <seanjc@google.com>
Fri, 23 Feb 2024 00:22:37 +0000 (16:22 -0800)
commit7b3d1bbf8d68d76fb21210932a5e8ed8ea80dbcc
tree8d6edba5aabbd6550502e80782d86938ba6f7236
parentbf1a49436ea37b98dd2f37c57608951d0e28eecc
KVM: VMX: Handle KVM-induced preemption timer exits in fastpath for L2

Eat VMX treemption timer exits in the fastpath regardless of whether L1 or
L2 is active.  The VM-Exit is 100% KVM-induced, i.e. there is nothing
directly related to the exit that KVM needs to do on behalf of the guest,
thus there is no reason to wait until the slow path to do nothing.

Opportunistically add comments explaining why preemption timer exits for
emulating the guest's APIC timer need to go down the slow path.

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