RISCV: Add kvm Sstc timer selftests
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v5 Latest12 patches 14 repliesIn review
- v411 patches 16 repliesSuperseded
- v39 patches 21 repliesSuperseded
Earlier versions · 2
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v2 | 8 patches | 31 replies | Superseded | |
| v1 | 4 patches | 20 replies | Superseded |
Changes in v5 from the cover letter
* Rebased to Linux 6.7-rc8
* Added new patch(2/12) to clean up the data type in struct test_args
* Re-ordered patch(11/11) in v4 to patch(3/12)
* Changed the timer_err_margin_us type from int to uint32_t
Patches in v5 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/12 | selftests/kvm: Fix issues with $(SPLIT_TESTS)tools/ | +12 | 0 replies | |
| 2/12 | KVM: arm64: selftests: Data type cleanup for arch_timer testtools/ | +6 | 2 replies | |
| 3/12 | KVM: arm64: selftests: Enable tuning of error margin in arch_timer testtools/ | +23 | 0 replies | |
| 4/12 | KVM: arm64: selftests: Split arch_timer test codetools/ tools/ tools/ +2 more | +311 | 0 replies | |
| 5/12 | KVM: selftests: Add CONFIG_64BIT definition for the buildtools/ | +1 | 0 replies | |
| 6/12 | tools: riscv: Add header file csr.htools/ | +541 | 0 replies | |
| 7/12 | tools: riscv: Add header file vdso/processor.htools/ | +32 | 0 replies | |
| 8/12 | KVM: riscv: selftests: Switch to use macro from csr.htools/ | +2 | 0 replies | |
| 9/12 | KVM: riscv: selftests: Add exception handling supporttools/ tools/ tools/ +2 more | +221 | 0 replies | |
| 10/12 | KVM: riscv: selftests: Add guest helper to get vcpu idtools/ tools/ tools/ | +10 | 0 replies | |
| 11/12 | KVM: riscv: selftests: Change vcpu_has_ext to a common functiontools/ tools/ tools/ | +13 | 7 replies | |
| 12/12 | KVM: riscv: selftests: Add sstc timer testtools/ tools/ tools/ +4 more | +210 | 0 replies |
Reviews trailers per patch
11 of 12 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Andrew Jones | Marc Zyngier |
|---|---|---|
| Series | R-b | |
| 1/12 | T-b | |
| 2/12 | R-b | |
| 3/12 | R-b | |
| 4/12 | R-b | |
| 5/12 | R-b | |
| 6/12 | R-b | |
| 7/12 | R-b | |
| 8/12 | R-b | |
| 9/12 | R-b | |
| 10/12 | R-b | |
| 11/12 | R-b | |
| 12/12 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v5 00/12] RISCV: Add kvm Sstc timer selftests
The RISC-V arch_timer selftests is used to validate Sstc timer functionality in a guest, which sets up periodic timer interrupts and check the basic interrupt status upon its receipt.
This KVM selftests was ported from aarch64 arch_timer and tested with Linux v6.7-rc8 on a Qemu riscv64 virt machine.
---
Changed since v4:
* Rebased to Linux 6.7-rc8
* Added new patch(2/12) to clean up the data type in struct test_args
* Re-ordered patch(11/11) in v4 to patch(3/12)
* Changed the timer_err_margin_us type from int to uint32_t
Haibo Xu (11):
KVM: arm64: selftests: Data type cleanup for arch_timer test
KVM: arm64: selftests: Enable tuning of error margin in arch_timer
test
KVM: arm64: selftests: Split arch_timer test code
KVM: selftests: Add CONFIG_64BIT definition for the build
tools: riscv: Add header file csr.h
tools: riscv: Add header file vdso/processor.h
KVM: riscv: selftests: Switch to use macro from csr.h
KVM: riscv: selftests: Add exception handling support
KVM: riscv: selftests: Add guest helper to get vcpu id
KVM: riscv: selftests: Change vcpu_has_ext to a common function
KVM: riscv: selftests: Add sstc timer test
Paolo Bonzini (1):
selftests/kvm: Fix issues with $(SPLIT_TESTS)
tools/arch/riscv/include/asm/csr.h | 541 ++++++++++++++++++ tools/arch/riscv/include/asm/vdso/processor.h | 32 ++ tools/testing/selftests/kvm/Makefile | 27 +- .../selftests/kvm/aarch64/arch_timer.c | 295 +--------- tools/testing/selftests/kvm/arch_timer.c | 259 +++++++++ .../selftests/kvm/include/aarch64/processor.h | 4 - .../selftests/kvm/include/kvm_util_base.h | 9 + .../selftests/kvm/include/riscv/arch_timer.h | 71 +++ .../selftests/kvm/include/riscv/processor.h | 65 ++- .../testing/selftests/kvm/include/test_util.h | 2 + .../selftests/kvm/include/timer_test.h | 45 ++ .../selftests/kvm/lib/riscv/handlers.S | 101 ++++ .../selftests/kvm/lib/riscv/processor.c | 87 +++ .../testing/selftests/kvm/riscv/arch_timer.c | 111 ++++ .../selftests/kvm/riscv/get-reg-list.c | 11 +- 15 files changed, 1353 insertions(+), 307 deletions(-) create mode 100644 tools/arch/riscv/include/asm/csr.h create mode 100644 tools/arch/riscv/include/asm/vdso/processor.h create mode 100644 tools/testing/selftests/kvm/arch_timer.c create mode 100644 tools/testing/selftests/kvm/include/riscv/arch_timer.h create mode 100644 tools/testing/selftests/kvm/include/timer_test.h create mode 100644 tools/testing/selftests/kvm/lib/riscv/handlers.S create mode 100644 tools/testing/selftests/kvm/riscv/arch_timer.c
Signature · 1 line
2.34.1