summaryrefslogtreecommitdiff
path: root/arch/arm64/kvm/hyp
diff options
context:
space:
mode:
authorOliver Upton <oliver.upton@linux.dev>2024-11-19 16:52:30 -0800
committerOliver Upton <oliver.upton@linux.dev>2024-11-20 17:23:32 -0800
commit13905f4547b050316262d54a5391d50e83ce613a (patch)
tree08f9cce9d35d3c922ca9ebf2918b50ea56d71a2d /arch/arm64/kvm/hyp
parent54bbee190d42166209185d89070c58a343bf514b (diff)
downloadlwn-13905f4547b050316262d54a5391d50e83ce613a.tar.gz
lwn-13905f4547b050316262d54a5391d50e83ce613a.zip
KVM: arm64: Use MDCR_EL2.HPME to evaluate overflow of hyp counters
The 'global enable control' (as it is termed in the architecture) for counters reserved by EL2 is MDCR_EL2.HPME. Use that instead of PMCR_EL0.E when evaluating the overflow state for hyp counters. Change the return value to a bool while at it, which better reflects the fact that the overflow state is a shared signal and not a per-counter property. Reviewed-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20241120005230.2335682-3-oliver.upton@linux.dev Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Diffstat (limited to 'arch/arm64/kvm/hyp')
0 files changed, 0 insertions, 0 deletions