Re: [PATCH v4 10/15] RISC-V: KVM: Support 64 bit firmware counters on RV32

2024-04-01 Thread Atish Patra
On Sat, Mar 2, 2024 at 2:52 AM Andrew Jones wrote: > > On Wed, Feb 28, 2024 at 05:01:25PM -0800, Atish Patra wrote: > > The SBI v2.0 introduced a fw_read_hi function to read 64 bit firmware > > counters for RV32 based systems. > > > > Add infrastructure to support that. > > > > Reviewed-by: Anup P

Re: [PATCH v4 10/15] RISC-V: KVM: Support 64 bit firmware counters on RV32

2024-03-02 Thread Andrew Jones
On Wed, Feb 28, 2024 at 05:01:25PM -0800, Atish Patra wrote: > The SBI v2.0 introduced a fw_read_hi function to read 64 bit firmware > counters for RV32 based systems. > > Add infrastructure to support that. > > Reviewed-by: Anup Patel > Signed-off-by: Atish Patra > --- > arch/riscv/include/as

[PATCH v4 10/15] RISC-V: KVM: Support 64 bit firmware counters on RV32

2024-02-28 Thread Atish Patra
The SBI v2.0 introduced a fw_read_hi function to read 64 bit firmware counters for RV32 based systems. Add infrastructure to support that. Reviewed-by: Anup Patel Signed-off-by: Atish Patra --- arch/riscv/include/asm/kvm_vcpu_pmu.h | 4 ++- arch/riscv/kvm/vcpu_pmu.c | 37 +