Skip to content

Add support for SBI FWFT extension testing

Clément Léger kvm kvm-riscv 3 versions – Applied

Status from this message: Applied to riscv/sbi

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 5 repliesApplied
  2. v22 patches 2 repliesSuperseded
  3. v12 patches 2 repliesSuperseded

Changes in v3 from the cover letter

- Rebase on top of andrew/riscv/sbi
- Use sbiret_report_error()
- Add helpers for MISALIGNED_EXC_DELEG fwft set/get
- Add a comment on misaligned trap handling

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2riscv: Add "-deps" handling for testsriscv/Makefile+5 -30 replies
2/2riscv: Add tests for SBI FWFT extensionlib/riscv/asm/sbi.h riscv/Makefile riscv/sbi-fwft.c +1 more+228 -13 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchAndrew Jones
1/2R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [kvm-unit-tests PATCH v3 0/2] Add support for SBI FWFT extension testing

This series adds a minimal set of tests for the FWFT extension. Reserved range as well as misaligned exception delegation. A commit coming from the SSE tests series is also included in this series to add -deps makefile notation.

---

V3:
- Rebase on top of andrew/riscv/sbi
- Use sbiret_report_error()
- Add helpers for MISALIGNED_EXC_DELEG fwft set/get
- Add a comment on misaligned trap handling

V2:
- Added fwft_{get/set}_raw() to test invalid > 32 bits ids
- Added test for invalid flags/value > 32 bits
- Added test for lock feature
- Use and enum for FWFT functions
- Replace hardcoded 1 << with BIT()
- Fix fwft_get/set return value
- Split set/get tests for reserved ranges
- Added push/pop to arch -c option
- Remove leftover of manual probing code

Clément Léger (2):
riscv: Add "-deps" handling for tests
riscv: Add tests for SBI FWFT extension

 riscv/Makefile      |   8 +-
 lib/riscv/asm/sbi.h |  34 ++++++++
 riscv/sbi-fwft.c    | 190 ++++++++++++++++++++++++++++++++++++++++++++
 riscv/sbi.c         |   3 +
 4 files changed, 232 insertions(+), 3 deletions(-)
 create mode 100644 riscv/sbi-fwft.c
Signature · 1 line
2.47.1