Add RISC-V Worlds ISA support to OpenSBI
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v6 Latest9 patches 0 repliesNew
- v59 patches 16 repliesSuperseded
- v49 patches 5 repliesSuperseded
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 9 patches | 20 replies | Superseded | |
| v2 | 9 patches | 26 replies | Superseded | |
| v1 RFC | 12 patches | 24 replies | Superseded |
Patches in v6 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/9 | lib: sbi_hart: add RISC-V Worlds ISA extensionsinclude/ include/ lib/ | +27 | 0 replies | |
| 2/9 | lib: utils: fdt_helper: parse RISC-V Worlds per-hart WID propertiesinclude/ lib/ | +67 | 0 replies | |
| 3/9 | lib: fdt_domain: parse domain WID propertiesinclude/ lib/ lib/ | +110 | 0 replies | |
| 4/9 | lib: sbi_hart: lock mwid CSR for RoT immutabilitylib/ | +27 | 0 replies | |
| 5/9 | lib: sbi_domain_context: propagate error from sbi_hart_protection_reconfigurelib/ | +4 | 0 replies | |
| 6/9 | lib: sbi_hart_worlds: Implement WID hart protection backendinclude/ lib/ lib/ +1 more | +204 | 0 replies | |
| 7/9 | include: sbi_types: add PRIx64 format macroinclude/ | +2 | 0 replies | |
| 8/9 | lib: sbi: display World ID configuration at bootlib/ lib/ | +31 | 0 replies | |
| 9/9 | docs: document WID DT propertiesdocs/ | +38 | 0 replies |
Reviews trailers per patch
All 9 patches have a Reviewed-by or Acked-by.
| Patch | Anup Patel | Pawandeep Oza |
|---|---|---|
| 1/9 | R-b | R-b |
| 2/9 | R-b | R-b |
| 3/9 | R-b | R-b |
| 4/9 | R-b | |
| 5/9 | R-b | R-b |
| 6/9 | R-b | R-b |
| 7/9 | R-b | R-b |
| 8/9 | R-b | R-b |
| 9/9 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v6 0/9] Add RISC-V Worlds ISA support to OpenSBI
This patch series adds support for the RISC-V Worlds ISA extensions in OpenSBI, introducing a WID-based hart protection backend to enforce hardware isolation boundaries across domains.
Trust Model and Boot-time Roles
-------------------------------
The implementation adheres to the two-phase M-mode trust model:
- RoT M-mode phase: An earlier boot stage (e.g., ROM or SPL) may program mwid and mlwidlist, locking mwid prior to handing off execution to OpenSBI.
- Regular M-mode phase (OpenSBI): OpenSBI treats the non-ISA platform constraints (pmwid, pmwidlist, pmlwidlist) and CSR states (mwid, mlwidlist) as immutable input policies from the hardware/RoT. It locks mwid if still unlocked, preventing subsequent M-mode software from altering its own WID, and programs per-domain mlwid and mwiddeleg based on device tree configuration.
Device Tree Bindings
--------------------
Per-hart properties defined in Linux kernel DT bindings v3 [1]:
- riscv,pmwid: M-mode World ID
- riscv,pmwidlist: M-mode permitted WID bitmap
- riscv,pmlwidlist: S-mode permitted WID bitmap
Per-domain properties (see docs/domain_support.md):
- wid: World ID assigned to this domain for S-mode
- widdeleg: WID delegation bitmap for this domain
[1] https://lore.kernel.org/all/[email protected]/
Base commit: 61f1973bd50338b36c52dc34006f76d464ca4f34
Yu-Chien Peter Lin (9):
lib: sbi_hart: add RISC-V Worlds ISA extensions
lib: utils: fdt_helper: parse RISC-V Worlds per-hart WID properties
lib: fdt_domain: parse domain WID properties
lib: sbi_hart: lock mwid CSR for RoT immutability
lib: sbi_domain_context: propagate error from
sbi_hart_protection_reconfigure
lib: sbi_hart_worlds: Implement WID hart protection backend
include: sbi_types: add PRIx64 format macro
lib: sbi: display World ID configuration at boot
docs: document WID DT properties
docs/domain_support.md | 38 ++++++++ include/sbi/riscv_encoding.h | 12 +++ include/sbi/sbi_domain.h | 6 ++ include/sbi/sbi_hart.h | 15 +++ include/sbi/sbi_hart_worlds.h | 24 +++++ include/sbi/sbi_types.h | 2 + lib/sbi/objects.mk | 1 + lib/sbi/sbi_domain.c | 20 ++++ lib/sbi/sbi_domain_context.c | 5 +- lib/sbi/sbi_hart.c | 37 ++++++++ lib/sbi/sbi_hart_worlds.c | 174 ++++++++++++++++++++++++++++++++++ lib/sbi/sbi_init.c | 13 +++ lib/utils/fdt/fdt_domain.c | 102 ++++++++++++++++++++ lib/utils/fdt/fdt_helper.c | 69 ++++++++++++-- 14 files changed, 510 insertions(+), 8 deletions(-) create mode 100644 include/sbi/sbi_hart_worlds.h create mode 100644 lib/sbi/sbi_hart_worlds.c
Signature · 7 lines
2.43.7 -- opensbi mailing list [email protected] http://lists.infradead.org/mailman/listinfo/opensbi