diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2021-11-23 19:52:27 +1000 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2021-11-24 21:09:02 +1100 |
commit | 434398ab5eed03dbc0075af9436e871712bfb45a (patch) | |
tree | e671f853504096d3aeee40c0244bcc42f1af9329 /tools/perf/scripts/python/check-perf-trace.py | |
parent | 4c9a68914eab1f17f6c428c579ffd75c4448461e (diff) |
KVM: PPC: Book3S HV P9: Avoid cpu_in_guest atomics on entry and exit
cpu_in_guest is set to determine if a CPU needs to be IPI'ed to exit
the guest and notice the need_tlb_flush bit.
This can be implemented as a global per-CPU pointer to the currently
running guest instead of per-guest cpumasks, saving 2 atomics per
entry/exit. P7/8 doesn't require cpu_in_guest, nor does a nested HV
(only the L0 does), so move it to the P9 HV path.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20211123095231.1036501-50-npiggin@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions