Skip to content
Commit b36ba84f authored by Reiji Watanabe's avatar Reiji Watanabe Committed by Greg Kroah-Hartman
Browse files

KVM: arm64: PMU: Restore the host's PMUSERENR_EL0



[ Upstream commit 8681f717 ]

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: 83a7a4d6 ("arm64: perf: Enable PMU counter userspace access for perf event")
Signed-off-by: default avatarReiji Watanabe <reijiw@google.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20230603025035.3781797-2-reijiw@google.com


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c803e916
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment