]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: stats: Add VM stat for remote tlb flush requests
authorJing Zhang <jingzhangos@google.com>
Tue, 17 Aug 2021 00:26:39 +0000 (00:26 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Sep 2021 10:30:45 +0000 (06:30 -0400)
commitf65c9139f99b72e64998c81dd164e4ae246266ca
tree5fad27d657f971485b97da0ee0c3970e996b539e
parent720aa63214a5b0788b22ac0867b48663796b40b4
KVM: stats: Add VM stat for remote tlb flush requests

Add a new stat that counts the number of times a remote TLB flush is
requested, regardless of whether it kicks vCPUs out of guest mode. This
allows us to look at how often flushes are initiated.

Unlike remote_tlb_flush, this one applies to ARM's instruction-set-based
TLB flush implementation, so apply it there too.

Original-by: David Matlack <dmatlack@google.com>
Signed-off-by: Jing Zhang <jingzhangos@google.com>
Message-Id: <20210817002639.3856694-1-jingzhangos@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/arm64/kvm/mmu.c
include/linux/kvm_host.h
include/linux/kvm_types.h
virt/kvm/kvm_main.c