aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2010-01-21 08:31:52 -0500
committerMarcelo Tosatti <mtosatti@redhat.com>2010-03-01 10:36:05 -0500
commit0c04851c0c093ce98ab4ca69556480d779292418 (patch)
tree58562c88457cf9dc9650b963aec974fe58ab9351 /arch/x86
parent8ae099127668de80e4babba73bb492740ce3a1be (diff)
KVM: trace guest fpu loads and unloads
Signed-off-by: Avi Kivity <avi@redhat.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 27af6e353b06..3b90298fb980 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -5292,6 +5292,7 @@ void kvm_load_guest_fpu(struct kvm_vcpu *vcpu)
5292 vcpu->guest_fpu_loaded = 1; 5292 vcpu->guest_fpu_loaded = 1;
5293 kvm_fx_save(&vcpu->arch.host_fx_image); 5293 kvm_fx_save(&vcpu->arch.host_fx_image);
5294 kvm_fx_restore(&vcpu->arch.guest_fx_image); 5294 kvm_fx_restore(&vcpu->arch.guest_fx_image);
5295 trace_kvm_fpu(1);
5295} 5296}
5296 5297
5297void kvm_put_guest_fpu(struct kvm_vcpu *vcpu) 5298void kvm_put_guest_fpu(struct kvm_vcpu *vcpu)
@@ -5304,6 +5305,7 @@ void kvm_put_guest_fpu(struct kvm_vcpu *vcpu)
5304 kvm_fx_restore(&vcpu->arch.host_fx_image); 5305 kvm_fx_restore(&vcpu->arch.host_fx_image);
5305 ++vcpu->stat.fpu_reload; 5306 ++vcpu->stat.fpu_reload;
5306 set_bit(KVM_REQ_DEACTIVATE_FPU, &vcpu->requests); 5307 set_bit(KVM_REQ_DEACTIVATE_FPU, &vcpu->requests);
5308 trace_kvm_fpu(0);
5307} 5309}
5308 5310
5309void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu) 5311void kvm_arch_vcpu_free(struct kvm_vcpu *vcpu)