diff options
author | Reiji Watanabe <reijiw@google.com> | 2023-06-03 05:50:34 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2023-06-04 19:19:36 +0300 |
commit | 8681f71759010503892f9e3ddb05f65c0f21b690 (patch) | |
tree | 52e16a72cc9da8fced7575b727fe013d30b7eda8 /arch/arm64/include | |
parent | 40e54cad454076172cc3e2bca60aa924650a3e4b (diff) | |
download | linux-8681f71759010503892f9e3ddb05f65c0f21b690.tar.xz |
KVM: arm64: PMU: Restore the host's PMUSERENR_EL0
Restore the host's PMUSERENR_EL0 value instead of clearing it,
before returning back to userspace, as the host's EL0 might have
a direct access to PMU registers (some bits of PMUSERENR_EL0 for
might not be zero for the host EL0).
Fixes: 83a7a4d643d3 ("arm64: perf: Enable PMU counter userspace access for perf event")
Signed-off-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230603025035.3781797-2-reijiw@google.com
Diffstat (limited to 'arch/arm64/include')
0 files changed, 0 insertions, 0 deletions