aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/svm.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-11-18 06:50:24 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:53:04 -0500
commite1beb1d37c3187aa12c6463bd15ba594e9986761 (patch)
treec2e6e84257f59f2194d7abfd768d724df649e494 /drivers/kvm/svm.c
parentd19a9cd275b0fdc793d1bb8b644b7aad0517e4bc (diff)
KVM: Replace 'light_exits' stat with 'host_state_reload'
This is a little more accurate (since it counts actual reloads, not potential reloads), and reverses the sense of the statistic to measure a bad event like most of the other stats (e.g. we want to minimize all counters). Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/svm.c')
-rw-r--r--drivers/kvm/svm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c
index a1a7f39ff3f..0d32304944f 100644
--- a/drivers/kvm/svm.c
+++ b/drivers/kvm/svm.c
@@ -654,6 +654,7 @@ static void svm_vcpu_put(struct kvm_vcpu *vcpu)
654 struct vcpu_svm *svm = to_svm(vcpu); 654 struct vcpu_svm *svm = to_svm(vcpu);
655 int i; 655 int i;
656 656
657 ++vcpu->stat.host_state_reload;
657 for (i = 0; i < NR_HOST_SAVE_USER_MSRS; i++) 658 for (i = 0; i < NR_HOST_SAVE_USER_MSRS; i++)
658 wrmsrl(host_save_user_msrs[i], svm->host_user_msrs[i]); 659 wrmsrl(host_save_user_msrs[i], svm->host_user_msrs[i]);
659 660