diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2009-10-09 10:08:28 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-12-03 02:32:15 -0500 |
commit | d8cabddf7e8fbdced2dd668c98d7762c7ef75245 (patch) | |
tree | 17d8f451b1bc9552cc09a3753d5e612f58c6f919 /arch/x86/kvm/svm.c | |
parent | 0ac406de8f3780c8e0801d5719e1ec531d4a6ec4 (diff) |
KVM: SVM: Add tracepoint for nested #vmexit
This patch adds a tracepoint for every #vmexit we get from a
nested guest.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 907af3f3a7af..edf6e8b2b84e 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -2366,6 +2366,12 @@ static int handle_exit(struct kvm_vcpu *vcpu) | |||
2366 | if (is_nested(svm)) { | 2366 | if (is_nested(svm)) { |
2367 | int vmexit; | 2367 | int vmexit; |
2368 | 2368 | ||
2369 | trace_kvm_nested_vmexit(svm->vmcb->save.rip, exit_code, | ||
2370 | svm->vmcb->control.exit_info_1, | ||
2371 | svm->vmcb->control.exit_info_2, | ||
2372 | svm->vmcb->control.exit_int_info, | ||
2373 | svm->vmcb->control.exit_int_info_err); | ||
2374 | |||
2369 | nsvm_printk("nested handle_exit: 0x%x | 0x%lx | 0x%lx | 0x%lx\n", | 2375 | nsvm_printk("nested handle_exit: 0x%x | 0x%lx | 0x%lx | 0x%lx\n", |
2370 | exit_code, svm->vmcb->control.exit_info_1, | 2376 | exit_code, svm->vmcb->control.exit_info_1, |
2371 | svm->vmcb->control.exit_info_2, svm->vmcb->save.rip); | 2377 | svm->vmcb->control.exit_info_2, svm->vmcb->save.rip); |