Re: [PATCH v6 23/24] KVM: riscv: selftests: Add a test for counter overflow

From: Andrew Jones
Date: Mon Apr 15 2024 - 09:41:15 EST


On Wed, Apr 10, 2024 at 05:07:51PM -0700, Atish Patra wrote:
> Add a test for verifying overflow interrupt. Currently, it relies on
> overflow support on cycle/instret events. This test works for cycle/
> instret events which support sampling via hpmcounters on the platform.
> There are no ISA extensions to detect if a platform supports that. Thus,
> this test will fail on platform with virtualization but doesn't
> support overflow on these two events.
>
> Reviewed-by: Anup Patel <anup@xxxxxxxxxxxxxx>
> Signed-off-by: Atish Patra <atishp@xxxxxxxxxxxx>
> ---
> .../selftests/kvm/riscv/sbi_pmu_test.c | 113 ++++++++++++++++++
> 1 file changed, 113 insertions(+)
>

Reviewed-by: Andrew Jones <ajones@xxxxxxxxxxxxxxxx>