]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
KVM: arm64: PMU: Fix period computation for 64bit counters with 32bit overflow
authorMarc Zyngier <maz@kernel.org>
Mon, 5 Dec 2022 12:05:51 +0000 (12:05 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 5 Dec 2022 12:05:51 +0000 (12:05 +0000)
commit58ff6569bc6ec369482eb2d132868870380be64c
tree3f3a058282c6d2d768b4d36facfb797bf252ffa6
parent64d6820d64c0a206e744bd8945374d563a76c16c
KVM: arm64: PMU: Fix period computation for 64bit counters with 32bit overflow

Fix the bogus masking when computing the period of a 64bit counter
with 32bit overflow. It really should be treated like a 32bit counter
for the purpose of the period.

Reported-by: Ricardo Koller <ricarkol@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/Y4jbosgHbUDI0WF4@google.com
arch/arm64/kvm/pmu-emul.c