summaryrefslogtreecommitdiff
path: root/drivers/kvm/x86.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-11-18 13:50:24 +0200
committerAvi Kivity <avi@qumranet.com>2008-01-30 17:53:04 +0200
commite1beb1d37c3187aa12c6463bd15ba594e9986761 (patch)
treec2e6e84257f59f2194d7abfd768d724df649e494 /drivers/kvm/x86.c
parentd19a9cd275b0fdc793d1bb8b644b7aad0517e4bc (diff)
downloadlwn-e1beb1d37c3187aa12c6463bd15ba594e9986761.tar.gz
lwn-e1beb1d37c3187aa12c6463bd15ba594e9986761.zip
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/x86.c')
-rw-r--r--drivers/kvm/x86.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/kvm/x86.c b/drivers/kvm/x86.c
index b7c72ac36735..923dfd4e0afd 100644
--- a/drivers/kvm/x86.c
+++ b/drivers/kvm/x86.c
@@ -60,7 +60,7 @@ struct kvm_stats_debugfs_item debugfs_entries[] = {
{ "halt_wakeup", STAT_OFFSET(halt_wakeup) },
{ "request_irq", STAT_OFFSET(request_irq_exits) },
{ "irq_exits", STAT_OFFSET(irq_exits) },
- { "light_exits", STAT_OFFSET(light_exits) },
+ { "host_state_reload", STAT_OFFSET(host_state_reload) },
{ "efer_reload", STAT_OFFSET(efer_reload) },
{ NULL }
};
@@ -1988,10 +1988,8 @@ again:
++vcpu->stat.request_irq_exits;
goto out;
}
- if (!need_resched()) {
- ++vcpu->stat.light_exits;
+ if (!need_resched())
goto again;
- }
}
out: