acrn-kernel/arch/arm64/kvm/hyp
Reiji Watanabe b36ba84f09 KVM: arm64: PMU: Restore the host's PMUSERENR_EL0
[ Upstream commit 8681f71759 ]

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: 83a7a4d643 ("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
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-28 11:12:28 +02:00
..
include KVM: arm64: PMU: Restore the host's PMUSERENR_EL0 2023-06-28 11:12:28 +02:00
nvhe
vhe
Makefile
aarch32.c
entry.S
exception.c
fpsimd.S
hyp-constants.c
hyp-entry.S
pgtable.c
vgic-v2-cpuif-proxy.c
vgic-v3-sr.c