aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-03-11 10:50:44 +0200
committerAvi Kivity <avi@redhat.com>2010-05-17 12:15:25 +0300
commit5bfd8b5455e69b37af16a2df1edae2c3b567648c (patch)
tree2b7ccd08791b327f27ec340687eadd82980873d6 /arch/x86/kvm/svm.c
parentKVM: remove redundant initialization of page->private (diff)
downloadlinux-dev-5bfd8b5455e69b37af16a2df1edae2c3b567648c.tar.xz
linux-dev-5bfd8b5455e69b37af16a2df1edae2c3b567648c.zip
KVM: Move kvm_exit tracepoint rip reading inside tracepoint
Reading rip is expensive on vmx, so move it inside the tracepoint so we only incur the cost if tracing is enabled. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r--arch/x86/kvm/svm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c
index 490bec199887..abbc3f9d03b2 100644
--- a/arch/x86/kvm/svm.c
+++ b/arch/x86/kvm/svm.c
@@ -2686,7 +2686,7 @@ static int handle_exit(struct kvm_vcpu *vcpu)
struct kvm_run *kvm_run = vcpu->run;
u32 exit_code = svm->vmcb->control.exit_code;
- trace_kvm_exit(exit_code, svm->vmcb->save.rip);
+ trace_kvm_exit(exit_code, vcpu);
if (unlikely(svm->nested.exit_required)) {
nested_svm_vmexit(svm);