]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2b8e5ebab57965048f76b0b8662df5f2075ba353
tree2b7ccd08791b327f27ec340687eadd82980873d6
parent9bea6c2df5cdee27f7cf6df11563ad29ee59e5b2
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