KVM: Move kvm_exit tracepoint rip reading inside tracepoint
authorAvi Kivity <avi@redhat.com>
Thu, 11 Mar 2010 08:50:44 +0000 (10:50 +0200)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:15:25 +0000 (12:15 +0300)
commit5bfd8b5455e69b37af16a2df1edae2c3b567648c
tree2b7ccd08791b327f27ec340687eadd82980873d6
parentd4f64b6cad0fc0fb4cec868c6ca6b1325949d08b
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>
arch/x86/kvm/svm.c
arch/x86/kvm/trace.h
arch/x86/kvm/vmx.c