diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2009-10-09 10:08:27 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-12-03 02:32:15 -0500 |
commit | 0ac406de8f3780c8e0801d5719e1ec531d4a6ec4 (patch) | |
tree | b489495da026d557b65f579c13f7b23b7b18d99b /arch/x86/kvm/svm.c | |
parent | cd3ff653ae0b45bac7a19208e9c75034fcacc85f (diff) |
KVM: SVM: Add tracepoint for nested vmrun
This patch adds a dedicated kvm tracepoint for a nested
vmrun.
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 884bffc70c7f..907af3f3a7af 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -1726,6 +1726,12 @@ static bool nested_svm_vmrun(struct vcpu_svm *svm) | |||
1726 | /* nested_vmcb is our indicator if nested SVM is activated */ | 1726 | /* nested_vmcb is our indicator if nested SVM is activated */ |
1727 | svm->nested.vmcb = svm->vmcb->save.rax; | 1727 | svm->nested.vmcb = svm->vmcb->save.rax; |
1728 | 1728 | ||
1729 | trace_kvm_nested_vmrun(svm->vmcb->save.rip - 3, svm->nested.vmcb, | ||
1730 | nested_vmcb->save.rip, | ||
1731 | nested_vmcb->control.int_ctl, | ||
1732 | nested_vmcb->control.event_inj, | ||
1733 | nested_vmcb->control.nested_ctl); | ||
1734 | |||
1729 | /* Clear internal status */ | 1735 | /* Clear internal status */ |
1730 | kvm_clear_exception_queue(&svm->vcpu); | 1736 | kvm_clear_exception_queue(&svm->vcpu); |
1731 | kvm_clear_interrupt_queue(&svm->vcpu); | 1737 | kvm_clear_interrupt_queue(&svm->vcpu); |