aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-10-09 10:08:29 -0400
committerAvi Kivity <avi@redhat.com>2009-12-03 02:32:15 -0500
commit17897f366847a9ef8a13e3671a0eb1c15422abed (patch)
treec43e10807f6ff17a5d6f0b65bee7b319437fc00c /arch/x86/kvm/svm.c
parentd8cabddf7e8fbdced2dd668c98d7762c7ef75245 (diff)
KVM: SVM: Add tracepoint for injected #vmexit
This patch adds a tracepoint for a nested #vmexit that gets re-injected to the 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.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index edf6e8b2b84..369eeb86e87 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -1592,6 +1592,12 @@ static int nested_svm_vmexit(struct vcpu_svm *svm)
1592 struct vmcb *hsave = svm->nested.hsave; 1592 struct vmcb *hsave = svm->nested.hsave;
1593 struct vmcb *vmcb = svm->vmcb; 1593 struct vmcb *vmcb = svm->vmcb;
1594 1594
1595 trace_kvm_nested_vmexit_inject(vmcb->control.exit_code,
1596 vmcb->control.exit_info_1,
1597 vmcb->control.exit_info_2,
1598 vmcb->control.exit_int_info,
1599 vmcb->control.exit_int_info_err);
1600
1595 nested_vmcb = nested_svm_map(svm, svm->nested.vmcb, KM_USER0); 1601 nested_vmcb = nested_svm_map(svm, svm->nested.vmcb, KM_USER0);
1596 if (!nested_vmcb) 1602 if (!nested_vmcb)
1597 return 1; 1603 return 1;