RISC-V: KVM: Remove scounteren initialization
authorAtish Patra <atishp@rivosinc.com>
Thu, 15 May 2025 23:11:18 +0000 (16:11 -0700)
committerAnup Patel <anup@brainfault.org>
Wed, 21 May 2025 04:04:55 +0000 (09:34 +0530)
commit5bc40978675241aad7175fadc857262118588805
tree6449d27540e861030ebc221f993da3ff26332827
parent9f0e6b98c1a13ac1f38d559b548b8f122572ae18
RISC-V: KVM: Remove scounteren initialization

Scounteren CSR controls the direct access the hpmcounters and cycle/
instret/time from the userspace. It's the supervisor's responsibility
to set it up correctly for it's user space. They hypervisor doesn't
need to decide the policy on behalf of the supervisor.

Signed-off-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20250515-fix_scounteren_vs-v3-1-729dc088943e@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kernel/head.S
arch/riscv/kvm/vcpu.c