]> 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:11:57 +0000 (17:11 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:25:50 +0000 (16:25 +0200)
commit279b5ddea3f9bb61d53e4325e52d143cb8824585
tree5a93fe86f319516b59fcbd31cb45003037aace39
parent4391110bc95c3db1501195ec89224c046a4b82e6
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