]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: VMX: Handle KVM-induced preemption timer exits in fastpath for L2
authorSean Christopherson <seanjc@google.com>
Fri, 15 Aug 2025 00:25:32 +0000 (17:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:13 +0000 (16:28 +0200)
commit62f586df29cabf4e6fcfbf9a31bdfc6d1ec63ed3
tree55da3ffa4189cac4ba29441857b6ad9a84d01cbf
parentca3cc405a3bc6cf11530235d0f70703150ef83b6
KVM: VMX: Handle KVM-induced preemption timer exits in fastpath for L2

[ Upstream commit 7b3d1bbf8d68d76fb21210932a5e8ed8ea80dbcc ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/vmx/vmx.c