aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/kvm_main.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-11-20 16:01:14 -0500
committerAvi Kivity <avi@qumranet.com>2008-01-30 10:53:10 -0500
commit0f74a24c59b814c1c8085251cbea48d339f0c7c6 (patch)
tree1102e9835f247b7c9d05887f36e2f8fa3b20681a /drivers/kvm/kvm_main.c
parente5a4c8cad952d6e060991841f3632578ab3ae133 (diff)
KVM: Add statistic for remote tlb flushes
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm_main.c')
-rw-r--r--drivers/kvm/kvm_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c
index 7939b5c9a4b4..aec6b67cfebb 100644
--- a/drivers/kvm/kvm_main.c
+++ b/drivers/kvm/kvm_main.c
@@ -115,6 +115,9 @@ void kvm_flush_remote_tlbs(struct kvm *kvm)
115 if (cpu != -1 && cpu != raw_smp_processor_id()) 115 if (cpu != -1 && cpu != raw_smp_processor_id())
116 cpu_set(cpu, cpus); 116 cpu_set(cpu, cpus);
117 } 117 }
118 if (cpus_empty(cpus))
119 return;
120 ++kvm->stat.remote_tlb_flush;
118 smp_call_function_mask(cpus, ack_flush, NULL, 1); 121 smp_call_function_mask(cpus, ack_flush, NULL, 1);
119} 122}
120 123