KVM: x86: count actual tlb flushes
authorRadim Krčmář <rkrcmar@redhat.com>
Thu, 18 Sep 2014 16:38:36 +0000 (12:38 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 24 Sep 2014 12:07:50 +0000 (14:07 +0200)
commita70656b63a82d639b0cec54861bf8faf16ad74e6
tree4eee9e078933cce4bb758367c20b66364ccfa1aa
parentbc6134942dbbf31c25e9bd7c876be5da81c9e1ce
KVM: x86: count actual tlb flushes

- we count KVM_REQ_TLB_FLUSH requests, not actual flushes
  (KVM can have multiple requests for one flush)
- flushes from kvm_flush_remote_tlbs aren't counted
- it's easy to make a direct request by mistake

Solve these by postponing the counting to kvm_check_request().

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Liang Chen <liangchen.linux@gmail.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/x86.c
This page took 0.025181 seconds and 5 git commands to generate.