summaryrefslogtreecommitdiff
path: root/arch/arm64/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorReiji Watanabe <reijiw@google.com>2023-06-03 05:50:34 +0300
committerMarc Zyngier <maz@kernel.org>2023-06-04 19:19:36 +0300
commit8681f71759010503892f9e3ddb05f65c0f21b690 (patch)
tree52e16a72cc9da8fced7575b727fe013d30b7eda8 /arch/arm64/include/asm/kvm_host.h
parent40e54cad454076172cc3e2bca60aa924650a3e4b (diff)
downloadlinux-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/asm/kvm_host.h')
0 files changed, 0 insertions, 0 deletions