]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86: Plumb "force_immediate_exit" into kvm_entry() tracepoint
authorSean Christopherson <seanjc@google.com>
Fri, 15 Aug 2025 00:25:28 +0000 (17:25 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Aug 2025 14:28:13 +0000 (16:28 +0200)
commitbaf9c96e4e9d6e6e59eaccbfee5387de97042f58
tree2f80d9ba494b18cf98c19d75c1c8f273225cb993
parenta1d4091f94c6f2a128d2aa23b9652a622747781a
KVM: x86: Plumb "force_immediate_exit" into kvm_entry() tracepoint

[ Upstream commit 9c9025ea003a03f967affd690f39b4ef3452c0f5 ]

Annotate the kvm_entry() tracepoint with "immediate exit" when KVM is
forcing a VM-Exit immediately after VM-Enter, e.g. when KVM wants to
inject an event but needs to first complete some other operation.
Knowing that KVM is (or isn't) forcing an exit is useful information when
debugging issues related to event injection.

Suggested-by: Maxim Levitsky <mlevitsk@redhat.com>
Link: https://lore.kernel.org/r/20240110012705.506918-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/svm/svm.c
arch/x86/kvm/trace.h
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c