KVM: riscv: selftests: Add SBI PMU selftest
authorAtish Patra <atishp@rivosinc.com>
Sat, 20 Apr 2024 15:17:37 +0000 (08:17 -0700)
committerAnup Patel <anup@brainfault.org>
Fri, 26 Apr 2024 07:44:06 +0000 (13:14 +0530)
commit158cb9e61cb7f9ed07384584fe34fb9c39590293
treecc2cda16022c06b38838fe9a0dd2896df232cafc
parent3203b9474356503ac5a28030b5d46d85a6491c5f
KVM: riscv: selftests: Add SBI PMU selftest

This test implements basic sanity test and cycle/instret event
counting tests.

Reviewed-by: Anup Patel <anup@brainfault.org>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20240420151741.962500-22-atishp@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
tools/testing/selftests/kvm/Makefile
tools/testing/selftests/kvm/riscv/sbi_pmu_test.c [new file with mode: 0644]