]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: riscv: selftests: Align the trap information wiht pt_regs
authorAtish Patra <atishp@rivosinc.com>
Wed, 30 Apr 2025 08:16:28 +0000 (01:16 -0700)
committerAnup Patel <anup@brainfault.org>
Wed, 21 May 2025 04:04:35 +0000 (09:34 +0530)
commite23bb06b17f81982450beb880b9c5a7fb4251164
treeb83d844322770f980feb0d16f097b3f22357fd4b
parent87ec7d5249bb8ebf40261420da069fa238c21789
KVM: riscv: selftests: Align the trap information wiht pt_regs

The current exeception register structure in selftests are missing
few registers (e.g stval). Instead of adding it manually, change
the ex_regs to align with pt_regs to make it future proof.

Suggested-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Atish Patra <atishp@rivosinc.com>
Link: https://lore.kernel.org/r/20250430-kvm_selftest_improve-v3-1-eea270ff080b@rivosinc.com
Signed-off-by: Anup Patel <anup@brainfault.org>
tools/testing/selftests/kvm/include/riscv/processor.h
tools/testing/selftests/kvm/lib/riscv/handlers.S
tools/testing/selftests/kvm/lib/riscv/processor.c
tools/testing/selftests/kvm/riscv/arch_timer.c
tools/testing/selftests/kvm/riscv/ebreak_test.c
tools/testing/selftests/kvm/riscv/sbi_pmu_test.c