]> git.proxmox.com Git - mirror_qemu.git/commit - include/exec/cpu-defs.h
cputlb: Count "partial" and "elided" tlb flushes
authorRichard Henderson <richard.henderson@linaro.org>
Fri, 19 Oct 2018 21:36:43 +0000 (14:36 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Wed, 31 Oct 2018 12:16:30 +0000 (12:16 +0000)
commite09de0a20d42e5e76e91ffc7f9f4787e225e1ec2
tree8619f49edf4361b8fe33f44db5efb8fb9defe23a
parentf8144c6c1e7574a8f2da05709a81bfc8b9215d77
cputlb: Count "partial" and "elided" tlb flushes

Our only statistic so far was "full" tlb flushes, where all mmu_idx
are flushed at the same time.

Now count "partial" tlb flushes where sets of mmu_idx are flushed,
but the set is not maximal.  Account one per mmu_idx flushed, as
that is the unit of work performed.

We don't actually count elided flushes yet, but go ahead and change
the interface presented to the monitor all at once.

Tested-by: Emilio G. Cota <cota@braap.org>
Reviewed-by: Emilio G. Cota <cota@braap.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cputlb.c
accel/tcg/translate-all.c
include/exec/cpu-defs.h
include/exec/cputlb.h