diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2009-10-09 16:08:27 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-12-03 09:32:15 +0200 |
commit | 0ac406de8f3780c8e0801d5719e1ec531d4a6ec4 (patch) | |
tree | b489495da026d557b65f579c13f7b23b7b18d99b /arch/x86/kvm/svm.c | |
parent | cd3ff653ae0b45bac7a19208e9c75034fcacc85f (diff) | |
download | blackbird-op-linux-0ac406de8f3780c8e0801d5719e1ec531d4a6ec4.tar.gz blackbird-op-linux-0ac406de8f3780c8e0801d5719e1ec531d4a6ec4.zip |
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) /* nested_vmcb is our indicator if nested SVM is activated */ svm->nested.vmcb = svm->vmcb->save.rax; + trace_kvm_nested_vmrun(svm->vmcb->save.rip - 3, svm->nested.vmcb, + nested_vmcb->save.rip, + nested_vmcb->control.int_ctl, + nested_vmcb->control.event_inj, + nested_vmcb->control.nested_ctl); + /* Clear internal status */ kvm_clear_exception_queue(&svm->vcpu); kvm_clear_interrupt_queue(&svm->vcpu); |