OpenSBI Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH v2 0/8] Preserve more architectural state across domain switches
@ 2026-10-23  7:09 Theodorus Wensan Februanto
  2026-10-23  7:09 ` [RFC PATCH v2 1/8] lib: sbi: Preserve hypervisor " Theodorus Wensan Februanto
                   ` (7 more replies)
  0 siblings, 8 replies; 12+ messages in thread
From: Theodorus Wensan Februanto @ 2026-10-23  7:09 UTC (permalink / raw)
  To: opensbi

This RFC series extends OpenSBI domain context switching to preserve
additional hypervisor, virtual supervisor, supervisor timer,
counter configuration, AIA priority, CTR, and vector state.

Changes since v1:
- Group hypervisor and VS state in hart_context_hext.
- Fold HCOUNTEREN and HTIMEDELTA preservation into the core patch.
- Group STIMECMP and VSTIMECMP in hart_context_sstc.
- Move Sstc after H-extension state preservation.
- Detect CTR capacity in sbi_hart.c and store it in hart features.
- Include vector VL and VTYPE preservation.

Link: https://github.com/riscv-software-src/opensbi/issues/433
Link: https://github.com/riscv-software-src/opensbi/issues/434

Theodorus Wensan Februanto (8):
  lib: sbi: Preserve hypervisor state across domain switches
  lib: sbi: Preserve optional H-extension state across domain switches
  lib: sbi: Preserve Sstc timer state across domain switches
  lib: sbi: Preserve supervisor count inhibit configuration
  lib: sbi: Preserve the supervisor indirect CSR selector
  lib: sbi: Preserve supervisor AIA interrupt priorities
  lib: sbi: Preserve supervisor CTR records across domain switches
  lib: sbi: Preserve vl and vtype during domain switches

 include/sbi/riscv_encoding.h |   2 +
 include/sbi/sbi_hart.h       |   2 +
 include/sbi/sbi_vector.h     |   2 +
 lib/sbi/sbi_domain_context.c | 239 +++++++++++++++++++++++++++++++++++
 lib/sbi/sbi_hart.c           |  11 ++
 lib/sbi/sbi_vector.c         |  11 ++
 6 files changed, 267 insertions(+)

-- 
2.43.0


-- 
opensbi mailing list
opensbi@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2026-10-27 18:51 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-23  7:09 [RFC PATCH v2 0/8] Preserve more architectural state across domain switches Theodorus Wensan Februanto
2026-10-23  7:09 ` [RFC PATCH v2 1/8] lib: sbi: Preserve hypervisor " Theodorus Wensan Februanto
2026-10-27 18:20   ` Radim Krcmar
2026-10-23  7:09 ` [RFC PATCH v2 2/8] lib: sbi: Preserve optional H-extension " Theodorus Wensan Februanto
2026-10-27 18:24   ` Radim Krcmar
2026-10-23  7:09 ` [RFC PATCH v2 3/8] lib: sbi: Preserve Sstc timer " Theodorus Wensan Februanto
2026-10-23  7:09 ` [RFC PATCH v2 4/8] lib: sbi: Preserve supervisor count inhibit configuration Theodorus Wensan Februanto
2026-10-23  7:09 ` [RFC PATCH v2 5/8] lib: sbi: Preserve the supervisor indirect CSR selector Theodorus Wensan Februanto
2026-10-23  7:09 ` [RFC PATCH v2 6/8] lib: sbi: Preserve supervisor AIA interrupt priorities Theodorus Wensan Februanto
2026-10-27 18:51   ` Radim Krcmar
2026-10-23  7:09 ` [RFC PATCH v2 7/8] lib: sbi: Preserve supervisor CTR records across domain switches Theodorus Wensan Februanto
2026-10-23  7:09 ` [RFC PATCH v2 8/8] lib: sbi: Preserve vl and vtype during " Theodorus Wensan Februanto

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox