aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/vmx.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/vmx.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/vmx.c')
-rw-r--r--drivers/kvm/vmx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index 84c77fed9d17..7130f315afdf 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -463,6 +463,7 @@ static void vmx_load_host_state(struct vcpu_vmx *vmx)
463 if (!vmx->host_state.loaded) 463 if (!vmx->host_state.loaded)
464 return; 464 return;
465 465
466 ++vmx->vcpu.stat.host_state_reload;
466 vmx->host_state.loaded = 0; 467 vmx->host_state.loaded = 0;
467 if (vmx->host_state.fs_reload_needed) 468 if (vmx->host_state.fs_reload_needed)
468 load_fs(vmx->host_state.fs_sel); 469 load_fs(vmx->host_state.fs_sel);