Skip to content

Add S-mode checks for delegation-related CSRs

Jay Chang qemu-devel qemu-riscv 3 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. v3 Latest2 patches 4 repliesApplied
  2. v22 patches 4 repliesSuperseded
  3. v12 patches 2 repliesSuperseded

Changes in v3 from the cover letter

* Add cover letter

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2target/riscv: Restrict mideleg/medeleg/medelegh access to S-mode hartstarget/riscv/csr.c+3 -31 reply
2/2target/riscv: Restrict midelegh access to S-mode hartstarget/riscv/csr.c+5 -22 replies

Reviews trailers per patch

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

PatchFrank ChangAlistair FrancisNutty Liu
1/2R-b R-b R-b
2/2R-b R-b R-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 3 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/2] Add S-mode checks for delegation-related CSRs

Patch 1 adds a predicate to restrict access to "medeleg, mideleg, and medelegh" to harts that support S-mode.

Patch 2 adds a privilege check for the "midelegh" CSR, which is defined by the AIA extension and only valid when Smaia is supported. This is enforced via an updated predicate in aia_smode32.

Change log:
V3:
* Add cover letter

Jay Chang (2):
target/riscv: Restrict mideleg/medeleg/medelegh access to S-mode harts target/riscv: Restrict midelegh access to S-mode harts

 target/riscv/csr.c | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)
Signature · 1 line
2.48.1