[kvm-unit-tests PATCH v2] riscv: lib: sbi_shutdown add pass/fail exit code.
Andrew Jones
andrew.jones at linux.dev
Wed Jul 2 07:45:45 PDT 2025
On Tue, Jun 24, 2025 at 12:23:17PM -0700, Jesse Taube wrote:
> When exiting it may be useful for the sbi implementation to know if
> kvm-unit-tests passed or failed.
> Add exit code to sbi_shutdown, and use it in exit() to pass
> success/failure (0/1) to sbi.
>
> Signed-off-by: Jesse Taube <jesse at rivosinc.com>
> ---
> lib/riscv/asm/sbi.h | 2 +-
> lib/riscv/io.c | 2 +-
> lib/riscv/sbi.c | 4 ++--
> 3 files changed, 4 insertions(+), 4 deletions(-)
>
Merged. But I think a follow-on patch that makes it configurable is still
a good idea.
Thanks,
drew
More information about the kvm-riscv
mailing list