commit | 0f74a24c59b814c1c8085251cbea48d339f0c7c6 | [log] [tgz] |
---|---|---|
author | Avi Kivity <avi@qumranet.com> | Tue Nov 20 23:01:14 2007 +0200 |
committer | Avi Kivity <avi@qumranet.com> | Wed Jan 30 17:53:10 2008 +0200 |
tree | 1102e9835f247b7c9d05887f36e2f8fa3b20681a | |
parent | e5a4c8cad952d6e060991841f3632578ab3ae133 [diff] [blame] |
KVM: Add statistic for remote tlb flushes Signed-off-by: Avi Kivity <avi@qumranet.com>
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index 7939b5c..aec6b67 100644 --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c
@@ -115,6 +115,9 @@ if (cpu != -1 && cpu != raw_smp_processor_id()) cpu_set(cpu, cpus); } + if (cpus_empty(cpus)) + return; + ++kvm->stat.remote_tlb_flush; smp_call_function_mask(cpus, ack_flush, NULL, 1); }