Commit 032ca566 authored by Atish Patra's avatar Atish Patra Committed by Greg Kroah-Hartman
Browse files

RISC-V: KVM: Fix to allow hpmcounter31 from the guest



[ Upstream commit 5aa09297 ]

The csr_fun defines a count parameter which defines the total number
CSRs emulated in KVM starting from the base. This value should be
equal to total number of counters possible for trap/emulation (32).

Fixes: a9ac6c37 ("RISC-V: KVM: Implement trap & emulate for hpmcounters")
Signed-off-by: default avatarAtish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20240816-kvm_pmu_fixes-v1-2-cdfce386dd93@rivosinc.com


Signed-off-by: default avatarAnup Patel <anup@brainfault.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 3c39f253
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment