Skip to content

Introduce svukte ISA extension

Fea.Wang qemu-devel qemu-riscv 5 versions – Applied

Status from this message: Applied to riscv-to-apply.next

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest6 patches 2 repliesApplied
  2. v46 patches 3 repliesSuperseded
  3. v35 patches 9 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v25 patches7 repliesSuperseded
v15 patches4 repliesSuperseded

Patches in v5 Applied

#Subject and filesSizeRepliesApplied
1/6target/riscv: Add svukte extension capability variabletarget/riscv/cpu_cfg.h+1 -00 replies
2/6target/riscv: Support senvcfg[UKTE] bit when svukte extension is enabledtarget/riscv/cpu_bits.h target/riscv/csr.c+5 -00 replies
3/6target/riscv: Support hstatus[HUKTE] bit when svukte extension is enabledtarget/riscv/cpu_bits.h target/riscv/csr.c+4 -00 replies
4/6target/riscv: Check memory access to meet svukte ruletarget/riscv/cpu_helper.c+55 -00 replies
5/6target/riscv: Expose svukte ISA extensiontarget/riscv/cpu.c+2 -00 replies
6/6target/riscv: Check svukte is not enabled in RV32target/riscv/tcg/tcg-cpu.c+5 -01 reply

Reviews trailers per patch

All 6 patches have a Reviewed-by or Acked-by.

PatchFrank ChangJim ShuDaniel Henrique BarbozaAlistair Francis
1/6R-b R-b R-b R-b
2/6R-b R-b R-b R-b
3/6R-b R-b R-b R-b
4/6R-b R-b R-b
5/6R-b R-b R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v5 thread

Cover letter [PATCH v5 0/6] Introduce svukte ISA extension

The Svukte ISA extension has been approved for fast-track development.
https://lf-riscv.atlassian.net/browse/RVS-2977
And there are Linux patches for the Svukte that are under review.
https://lore.kernel.org/kvm/[email protected]/T/#mf70fcb22cd2987ad268c0efee9b8583197d3cb4f

Svukte provides a means to make user-mode accesses to supervisor memory raise page faults in constant time, mitigating attacks that attempt to discover the supervisor software's address-space layout.

Refer to the draft of svukte extension from:
https://github.com/riscv/riscv-isa-manual/pull/1564

base-commit: 2209cae121e5da3cfbdb9dd4b06d52d0ef66ea69

[v5]
* Update the warning log and the commit message

[v4]
* Add a svukte extension check in RV32.
* Refine the code.

[v3]
* Fix some typos
* Refine code by separating a function into two dedicated functions.
* Follow the riscv,isa order

[v2]
* Refactor the code

[v1]
* Add svukte extension

Fea.Wang (6):
target/riscv: Add svukte extension capability variable target/riscv: Support senvcfg[UKTE] bit when svukte extension is
enabled
target/riscv: Support hstatus[HUKTE] bit when svukte extension is
enabled
target/riscv: Check memory access to meet svukte rule target/riscv: Expose svukte ISA extension target/riscv: Check svukte is not enabled in RV32

 target/riscv/cpu.c         |  2 ++
 target/riscv/cpu_bits.h    |  2 ++
 target/riscv/cpu_cfg.h     |  1 +
 target/riscv/cpu_helper.c  | 55 ++++++++++++++++++++++++++++++++++++++
 target/riscv/csr.c         |  7 +++++
 target/riscv/tcg/tcg-cpu.c |  5 ++++
 6 files changed, 72 insertions(+)
Signature · 1 line
2.34.1