You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The kvm_exit tracepoint has the following proto ([0]):
TP_PROTO(struct kvm_vcpu *vcpu, u32 isa)
So for raw tracepoint, the first arg is a pointer to kvm_vcpu,
not exit_reason. The exit_reason is hidden inside struct vcpu_vmx
for Intel CPU (or struct vcpu_svm for AMD CPU). Both structs are
not part of the UAPI, so it's hard to extract exit_reason.
Let's always use the kvm_exit tracepoint instead.
[0]: https://github.com/torvalds/linux/blob/1ef6663a587b/arch/x86/kvm/trace.h#L296
Signed-off-by: Hengqi Chen <[email protected]>
0 commit comments