KVM: x86: Plumb "force_immediate_exit" into kvm_entry() tracepoint

[ Upstream commit 9c9025ea00 ]

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>
This commit is contained in:
Sean Christopherson 2025-08-14 17:11:53 -07:00 • committed by Greg Kroah-Hartman
commit fcd1aa28e9
5 changed files with 14 additions and 9 deletions