Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 80767
b: refs/heads/master
c: 0f74a24
h: refs/heads/master
i:
  80765: 8d2f52e
  80763: 892b4ea
  80759: 4ea904b
  80751: 77b0903
  80735: 0769b93
  80703: 4dee9ca
  80639: 4ec94cc
v: v3
  • Loading branch information
Avi Kivity committed Jan 30, 2008
1 parent 1f0fc33 commit e8ec969
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e5a4c8cad952d6e060991841f3632578ab3ae133
refs/heads/master: 0f74a24c59b814c1c8085251cbea48d339f0c7c6
1 change: 1 addition & 0 deletions trunk/drivers/kvm/kvm.h
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,7 @@ struct kvm_vm_stat {
u32 mmu_pde_zapped;
u32 mmu_flooded;
u32 mmu_recycled;
u32 remote_tlb_flush;
};

struct kvm {
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/kvm/kvm_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,9 @@ void kvm_flush_remote_tlbs(struct kvm *kvm)
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);
}

Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/kvm/x86.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ struct kvm_stats_debugfs_item debugfs_entries[] = {
{ "mmu_pde_zapped", VM_STAT(mmu_pde_zapped) },
{ "mmu_flooded", VM_STAT(mmu_flooded) },
{ "mmu_recycled", VM_STAT(mmu_recycled) },
{ "remote_tlb_flush", VM_STAT(remote_tlb_flush) },
{ NULL }
};

Expand Down

0 comments on commit e8ec969

Please sign in to comment.