[PATCH 0/2] Rename sbi_domain functions and per-domain data
Rahul Pathak
rahul.pathak at oss.qualcomm.com
Thu Aug 20 05:13:07 PDT 2026
This series changes the names of sbi domain callback
functions and per-domain data structures and functions
to represent what they actually do. There are no functional
changes.
Patch 1 renames the hart protection map_range()/unmap_range() callbacks
and their wrappers to temp_map_range()/temp_unmap_range(). These
are not generic address-range mapping operations but they are only used by
M-mode to get temporarily access to an S/U-mode address range.
Patch 2 renames the per-domain data mechanism to per-domain state. The
areas registered through it hold various states associated with a
domain - hart context in sbi_domain_context and MPXY state in sbi_mpxy
today - which "data" does not convey.
Patch 1 earlier was part of SMMPT series but due to patch 2 making it
a separate series and it will be removed from next version of SMMPT
series.
https://lore.kernel.org/opensbi/20260805183839.2576691-1-rahul.pathak@oss.qualcomm.com/
Rahul Pathak (2):
lib: sbi: Rename map_range/unmap_range functions
lib: sbi_domain: Rename per-domain data to per-domain state
include/sbi/sbi_domain.h | 6 +-
include/sbi/sbi_domain_data.h | 93 --------------------
include/sbi/sbi_domain_state.h | 93 ++++++++++++++++++++
include/sbi/sbi_hart_protection.h | 27 +++---
lib/sbi/objects.mk | 2 +-
lib/sbi/sbi_dbtr.c | 26 +++---
lib/sbi/sbi_domain.c | 6 +-
lib/sbi/sbi_domain_context.c | 14 +--
lib/sbi/sbi_domain_data.c | 138 ------------------------------
lib/sbi/sbi_domain_state.c | 138 ++++++++++++++++++++++++++++++
lib/sbi/sbi_ecall_dbcn.c | 4 +-
lib/sbi/sbi_hart_pmp.c | 10 +--
lib/sbi/sbi_hart_protection.c | 12 +--
lib/sbi/sbi_mpxy.c | 56 ++++++------
lib/sbi/sbi_pmu.c | 4 +-
lib/sbi/sbi_sse.c | 8 +-
16 files changed, 321 insertions(+), 316 deletions(-)
delete mode 100644 include/sbi/sbi_domain_data.h
create mode 100644 include/sbi/sbi_domain_state.h
delete mode 100644 lib/sbi/sbi_domain_data.c
create mode 100644 lib/sbi/sbi_domain_state.c
--
2.53.0
More information about the opensbi
mailing list