diff options
Diffstat (limited to 'drivers/kvm/x86.c')
-rw-r--r-- | drivers/kvm/x86.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/kvm/x86.c b/drivers/kvm/x86.c index 923dfd4e0afd..c1211e125b43 100644 --- a/drivers/kvm/x86.c +++ b/drivers/kvm/x86.c | |||
@@ -62,6 +62,7 @@ struct kvm_stats_debugfs_item debugfs_entries[] = { | |||
62 | { "irq_exits", STAT_OFFSET(irq_exits) }, | 62 | { "irq_exits", STAT_OFFSET(irq_exits) }, |
63 | { "host_state_reload", STAT_OFFSET(host_state_reload) }, | 63 | { "host_state_reload", STAT_OFFSET(host_state_reload) }, |
64 | { "efer_reload", STAT_OFFSET(efer_reload) }, | 64 | { "efer_reload", STAT_OFFSET(efer_reload) }, |
65 | { "fpu_reload", STAT_OFFSET(fpu_reload) }, | ||
65 | { NULL } | 66 | { NULL } |
66 | }; | 67 | }; |
67 | 68 | ||
@@ -2417,6 +2418,7 @@ void kvm_put_guest_fpu(struct kvm_vcpu *vcpu) | |||
2417 | vcpu->guest_fpu_loaded = 0; | 2418 | vcpu->guest_fpu_loaded = 0; |
2418 | fx_save(&vcpu->guest_fx_image); | 2419 | fx_save(&vcpu->guest_fx_image); |
2419 | fx_restore(&vcpu->host_fx_image); | 2420 | fx_restore(&vcpu->host_fx_image); |
2421 | ++vcpu->stat.fpu_reload; | ||
2420 | } | 2422 | } |
2421 | EXPORT_SYMBOL_GPL(kvm_put_guest_fpu); | 2423 | EXPORT_SYMBOL_GPL(kvm_put_guest_fpu); |
2422 | 2424 | ||