Re: [PATCH v2 2/3] KVM: riscv: selftests: Decode stval to identify exact exception type

2025-04-30 Thread Atish Patra
On 4/30/25 12:09 AM, Andrew Jones wrote: On Tue, Apr 29, 2025 at 05:18:46PM -0700, Atish Patra wrote: Currently, the sbi_pmu_test continues if the exception type is illegal instruction because access to hpmcounter will generate that. However illegal instruction exception may occur due to the o

Re: [PATCH v2 2/3] KVM: riscv: selftests: Decode stval to identify exact exception type

2025-04-30 Thread Andrew Jones
On Tue, Apr 29, 2025 at 05:18:46PM -0700, Atish Patra wrote: > Currently, the sbi_pmu_test continues if the exception type is illegal > instruction because access to hpmcounter will generate that. However > illegal instruction exception may occur due to the other reasons > which should result in te

[PATCH v2 2/3] KVM: riscv: selftests: Decode stval to identify exact exception type

2025-04-29 Thread Atish Patra
Currently, the sbi_pmu_test continues if the exception type is illegal instruction because access to hpmcounter will generate that. However illegal instruction exception may occur due to the other reasons which should result in test assertion. Use the stval to decode the exact type of instructions