public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH v3 0/2] riscv: sbi: Add support to test HSM extension
@ 2024-09-10 15:15 James Raphael Tiovalen
  2024-09-10 15:15 ` [kvm-unit-tests PATCH v3 1/2] riscv: sbi: Add HSM extension functions James Raphael Tiovalen
  2024-09-10 15:15 ` [kvm-unit-tests PATCH v3 2/2] riscv: sbi: Add tests for HSM extension James Raphael Tiovalen
  0 siblings, 2 replies; 6+ messages in thread
From: James Raphael Tiovalen @ 2024-09-10 15:15 UTC (permalink / raw)
  To: kvm, kvm-riscv; +Cc: andrew.jones, atishp, cade.richard, James Raphael Tiovalen

This patch series adds support for testing all 4 functions of the HSM
extension as defined in the RISC-V SBI specification. The first patch
adds some helper routines to prepare for the HSM test, while the
second patch adds the actual test for the HSM extension.

v3:
- Addressed all of Andrew's comments.
- Split the report_prefix_pop patch into its own series.
- Added a new environment variable to specify the maximum number of
  CPUs supported by the SBI implementation.

v2:
- Addressed all of Andrew's comments.
- Added a new patch to add helper routines to clear multiple prefixes.
- Reworked the approach to test the HSM extension by using cpumask and
  on-cpus.

James Raphael Tiovalen (2):
  riscv: sbi: Add HSM extension functions
  riscv: sbi: Add tests for HSM extension

 riscv/Makefile      |   3 +-
 lib/riscv/asm/sbi.h |  17 +++
 lib/riscv/sbi.c     |  10 ++
 riscv/sbi.h         |  10 ++
 riscv/sbi-asm.S     |  47 ++++++
 riscv/sbi.c         | 357 ++++++++++++++++++++++++++++++++++++++++++++
 6 files changed, 443 insertions(+), 1 deletion(-)
 create mode 100644 riscv/sbi.h
 create mode 100644 riscv/sbi-asm.S

--
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-09-12 14:06 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-10 15:15 [kvm-unit-tests PATCH v3 0/2] riscv: sbi: Add support to test HSM extension James Raphael Tiovalen
2024-09-10 15:15 ` [kvm-unit-tests PATCH v3 1/2] riscv: sbi: Add HSM extension functions James Raphael Tiovalen
2024-09-11 15:45   ` Andrew Jones
2024-09-12 14:06     ` Andrew Jones
2024-09-10 15:15 ` [kvm-unit-tests PATCH v3 2/2] riscv: sbi: Add tests for HSM extension James Raphael Tiovalen
2024-09-12 14:04   ` Andrew Jones

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox