KVM: SVM: Add tracepoint for #vmexit because intr pending

This patch adds a special tracepoint for the event that a
nested #vmexit is injected because kvm wants to inject an
interrupt into the guest.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
This commit is contained in:
Joerg Roedel
2009-10-09 16:08:30 +02:00
committed by Avi Kivity
parent 17897f3668
commit 236649de33
3 changed files with 20 additions and 1 deletions
+1 -1
View File
@@ -1390,7 +1390,7 @@ static inline int nested_svm_intr(struct vcpu_svm *svm)
* the #vmexit here.
*/
svm->nested.exit_required = true;
nsvm_printk("VMexit -> INTR\n");
trace_kvm_nested_intr_vmexit(svm->vmcb->save.rip);
return 1;
}