diff options
author | Andrew Murray <[email protected]> | 2019-04-09 20:22:15 +0100 |
---|---|---|
committer | Marc Zyngier <[email protected]> | 2019-04-24 15:46:26 +0100 |
commit | 435e53fb5e21ad1820c5c69f208304c0e5623d01 (patch) | |
tree | b3ad2d97114ca99f78c6edcc76c7b0e1446df91b /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 3d91befbb3a0fcec6e1eebde45c8074b88cc9441 (diff) |
arm64: KVM: Enable VHE support for :G/:H perf event modifiers
With VHE different exception levels are used between the host (EL2) and
guest (EL1) with a shared exception level for userpace (EL0). We can take
advantage of this and use the PMU's exception level filtering to avoid
enabling/disabling counters in the world-switch code. Instead we just
modify the counter type to include or exclude EL0 at vcpu_{load,put} time.
We also ensure that trapped PMU system register writes do not re-enable
EL0 when reconfiguring the backing perf events.
This approach completely avoids blackout windows seen with !VHE.
Suggested-by: Christoffer Dall <[email protected]>
Signed-off-by: Andrew Murray <[email protected]>
Acked-by: Will Deacon <[email protected]>
Reviewed-by: Suzuki K Poulose <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions