target/riscv: Smepmp fixes to match specification
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
- v2 Latest5 patches 14 repliesApplied
- v15 patches 7 repliesSuperseded
Changes in v2 from the cover letter
- rebased to latest riscv-to-apply.next
- addressed Daniel comments on patch 1
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | target/riscv: pmp: don't allow RLB to bypass rule privilegestarget/ | +23 | 3 replies | |
| 2/5 | target/riscv: pmp: move Smepmp operation conversion into a functiontarget/ | +12 | 2 replies | |
| 3/5 | target/riscv: pmp: fix checks on writes to pmpcfg in Smepmp MML modetarget/ | +43 | 1 reply | |
| 4/5 | target/riscv: pmp: exit csr writes early if value was not changedtarget/ | +15 | 4 replies | |
| 5/5 | target/riscv: pmp: remove redundant check in pmp_is_lockedtarget/ | +0 | 2 replies |
Reviews trailers per patch
All 5 patches have a Reviewed-by or Acked-by.
| Patch | Daniel Henrique Barboza | LIU Zhiwei | Alistair Francis |
|---|---|---|---|
| 1/5 | R-b | R-b | R-b |
| 2/5 | R-b | R-b | R-b |
| 3/5 | R-b | R-b | |
| 4/5 | R-b | R-b | R-b |
| 5/5 | R-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.
Cover letter [PATCH v2 0/5] target/riscv: Smepmp fixes to match specification
These patches fix Smepmp implementation to make it compliant with the spec.
First patch limits RLB to CSR changes since RLB should not affect privilege evaluation. Patch 2 extracts some common code into a function (to be used in patch 3). Patch 3 fixes validation of pmpcfg CSR writes in order to match Smepmp specification. Patch 4 is a small optimization and last patch is just removing redundant code.
---
Changes in v2:
- rebased to latest riscv-to-apply.next
- addressed Daniel comments on patch 1
Link to v1:
https://lore.kernel.org/qemu-riscv/[email protected]/
Loïc Lefort (5):
target/riscv: pmp: don't allow RLB to bypass rule privileges target/riscv: pmp: move Smepmp operation conversion into a function target/riscv: pmp: fix checks on writes to pmpcfg in Smepmp MML mode target/riscv: pmp: exit csr writes early if value was not changed target/riscv: pmp: remove redundant check in pmp_is_locked
target/riscv/pmp.c | 151 +++++++++++++++++++++++++-------------------- 1 file changed, 83 insertions(+), 68 deletions(-)
Signature · 1 line
2.47.2