Skip to content

OpenSBI hart protection abstraction

Anup Patel opensbi 2 versions – Applied

Status from this message: Applied this series to the riscv/opensbi repo.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyApplied
  2. v15 patches 6 repliesSuperseded

Changes in v2 from the cover letter

- Added documentation for function parameters in PATCH2
- Dropped return value of sbi_hart_protection_unregister() in PATCH2
- Register oldpmp hart protection only when Smepmp is not available in PATCH3

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5lib: sbi: Introduce sbi_hart_pmp_unconfigure() functioninclude/sbi/sbi_hart.h lib/sbi/sbi_domain_context.c lib/sbi/sbi_hart.c+16 -90 replies
2/5lib: sbi: Introduce hart protection abstractioninclude/sbi/sbi_hart_protection.h lib/sbi/objects.mk lib/sbi/sbi_hart_protection.c +1 more+202 -00 replies
3/5lib: sbi: Implement hart protection for PMP and ePMPlib/sbi/sbi_hart.c+132 -760 replies
4/5lib: sbi: Replace sbi_hart_pmp_xyz() and sbi_hart_map/unmap_addr()include/sbi/sbi_hart.h lib/sbi/sbi_dbtr.c lib/sbi/sbi_domain_context.c +6 more+58 -830 replies
5/5lib: sbi: Factor-out PMP programming into separate sourcesinclude/sbi/sbi_hart.h include/sbi/sbi_hart_pmp.h lib/sbi/objects.mk +3 more+382 -3510 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/5] OpenSBI hart protection abstraction

Currently, PMP and ePMP are the only hart protection mechanisms available in OpenSBI but new protection mechanisms (such as Smmpt) will be added in the near future. This series adds hart protection abstraction and related APIs for allowing multiple hart protection mechanisms.

These patches can also found in hart_protection_v2 branch at:
https://github.com/avpatel/opensbi.git

Changes since v1:
- Added documentation for function parameters in PATCH2
- Dropped return value of sbi_hart_protection_unregister() in PATCH2
- Register oldpmp hart protection only when Smepmp is not available in PATCH3

Anup Patel (5):
lib: sbi: Introduce sbi_hart_pmp_unconfigure() function
lib: sbi: Introduce hart protection abstraction
lib: sbi: Implement hart protection for PMP and ePMP
lib: sbi: Replace sbi_hart_pmp_xyz() and sbi_hart_map/unmap_addr()
lib: sbi: Factor-out PMP programming into separate sources

 include/sbi/sbi_hart.h            |  25 +--
 include/sbi/sbi_hart_pmp.h        |  20 ++
 include/sbi/sbi_hart_protection.h | 100 +++++++++
 lib/sbi/objects.mk                |   2 +
 lib/sbi/sbi_dbtr.c                |  33 +--
 lib/sbi/sbi_domain_context.c      |  13 +-
 lib/sbi/sbi_ecall_dbcn.c          |   6 +-
 lib/sbi/sbi_hart.c                | 308 +-------------------------
 lib/sbi/sbi_hart_pmp.c            | 355 ++++++++++++++++++++++++++++++
 lib/sbi/sbi_hart_protection.c     |  96 ++++++++
 lib/sbi/sbi_init.c                |  22 +-
 lib/sbi/sbi_mpxy.c                |  25 ++-
 lib/sbi/sbi_pmu.c                 |   5 +-
 lib/sbi/sbi_sse.c                 |   9 +-
 14 files changed, 645 insertions(+), 374 deletions(-)
 create mode 100644 include/sbi/sbi_hart_pmp.h
 create mode 100644 include/sbi/sbi_hart_protection.h
 create mode 100644 lib/sbi/sbi_hart_pmp.c
 create mode 100644 lib/sbi/sbi_hart_protection.c
Signature · 7 lines
2.43.0


-- 
opensbi mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/opensbi