diff options
author | James Clark <james.clark@linaro.org> | 2025-01-06 14:24:40 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2025-01-12 12:50:11 +0000 |
commit | a665e3bc88081dd65642d83fc22a1abdb6a901bc (patch) | |
tree | af3275ecb9f2ea20b75ea809fefd2e534c4893c4 /tools/perf/scripts/python/syscall-counts.py | |
parent | a2b579c41fe9c295804abd167751f9fdc73c7006 (diff) |
KVM: arm64: coresight: Give TRBE enabled state to KVM
Currently in nVHE, KVM has to check if TRBE is enabled on every guest
switch even if it was never used. Because it's a debug feature and is
more likely to not be used than used, give KVM the TRBE buffer status to
allow a much simpler and faster do-nothing path in the hyp.
Protected mode now disables trace regardless of TRBE (because
trfcr_while_in_guest is always 0), which was not previously done.
However, it continues to flush whenever the buffer is enabled
regardless of the filter status. This avoids the hypothetical case of a
host that had disabled the filter but not flushed which would arise if
only doing the flush when the filter was enabled.
Signed-off-by: James Clark <james.clark@linaro.org>
Link: https://lore.kernel.org/r/20250106142446.628923-6-james.clark@linaro.org
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions