[kvm-unit-tests PATCH 2/2] riscv: dbtr: Add initial API corner case / error handling tests

Andrew Jones andrew.jones at linux.dev
Wed Sep 30 04:33:10 PDT 2026


On Fri, Mar 13, 2026 at 03:08:31PM +1000, Nicholas Piggin wrote:
> The SBI DBTR specification has quite detailed API requirements
> that are easy to get wrong. This implements the beginning of
> testing some corner cases, not with trigger behaviour but with
> API behaviour.
> 
> Signed-off-by: Nicholas Piggin <npiggin at gmail.com>
> ---
> These tests expose a bunch of major and minor errors in OpenSBI
> handling, for which I will post patches to the opensbi list. As
> well as possibly a bug in the SBI spec, reported here.
> 
> https://github.com/riscv-non-isa/riscv-sbi-doc/issues/257
> 
> Thanks,
> Nick
> ---
> ---
>  riscv/sbi-dbtr.c | 314 +++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 314 insertions(+)
>

Hi Nicholas,

Sorry I didn't pay attention to the OpenSBI and SBI spec work you've doing
related to these tests. Are the fixes in? Do these tests now match the
spec and the behavior of latest opensbi?

Thanks,
drew



More information about the opensbi mailing list