]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RISC-V: KVM: Improve firmware counter read function
authorAtish Patra <atishp@rivosinc.com>
Sat, 20 Apr 2024 15:17:32 +0000 (08:17 -0700)
committerAnup Patel <anup@brainfault.org>
Fri, 26 Apr 2024 07:43:54 +0000 (13:13 +0530)
commit4e21f2238ad5c26d8a9be5fc8771d4e5d544d706
tree08f160f385ea15d76c49f17f6fa77c1d7e541681
parent08fb07d6dcf7101c1c98782f2b4e27aca7f855c3
RISC-V: KVM: Improve firmware counter read function

Rename the function to indicate that it is meant for firmware
counter read. While at it, add a range sanity check for it as
well.

Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
Link: https://lore.kernel.org/r/20240420151741.962500-17-atishp@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/include/asm/kvm_vcpu_pmu.h
arch/riscv/kvm/vcpu_pmu.c
arch/riscv/kvm/vcpu_sbi_pmu.c