diff options
author | Avi Kivity <avi@redhat.com> | 2010-03-11 10:50:44 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 12:15:25 +0300 |
commit | 5bfd8b5455e69b37af16a2df1edae2c3b567648c (patch) | |
tree | 2b7ccd08791b327f27ec340687eadd82980873d6 /arch/x86/kvm/vmx.c | |
parent | d4f64b6cad0fc0fb4cec868c6ca6b1325949d08b (diff) | |
download | lwn-5bfd8b5455e69b37af16a2df1edae2c3b567648c.tar.gz lwn-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/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 8e2a24693be9..3dbfc20824b7 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -3612,7 +3612,7 @@ static int vmx_handle_exit(struct kvm_vcpu *vcpu) u32 exit_reason = vmx->exit_reason; u32 vectoring_info = vmx->idt_vectoring_info; - trace_kvm_exit(exit_reason, kvm_rip_read(vcpu)); + trace_kvm_exit(exit_reason, vcpu); /* If guest state is invalid, start emulating */ if (vmx->emulation_required && emulate_invalid_guest_state) |