lib: sbi: Add initial domain context management support
authorQingyu Shang <2931013282@sjtu.edu.cn>
Wed, 6 Mar 2024 11:15:58 +0000 (19:15 +0800)
committerAnup Patel <anup@brainfault.org>
Sun, 10 Mar 2024 04:56:42 +0000 (10:26 +0530)
commite11025c52d70c8a6042965d5f368ae9d14bd80d6
tree322132ea186c12f6c7da08c0fc1855df8f741ba3
parent87d8fe78653e77de33cc12b9df07fc3a202f7d49
lib: sbi: Add initial domain context management support

The domain context management component in OpenSBI provides basic CPU
context management routines for existing OpenSBI domain. As domain
extension, it was initially designed to facilitate the suspension
and resumption of domains, enabling secure domains to efficiently
share CPU resources.

The patch also provides an addition to the OpenSBI domain to provide
updates on hart-domain assignment and declarations of contexts within
the domain.

Signed-off-by: Qingyu Shang <2931013282@sjtu.edu.cn>
Reviewed-by: Yu Chien Peter Lin <peterlin@andestech.com>
Tested-by: Yu Chien Peter Lin <peterlin@andestech.com>
Reviewed-by: Anup Patel <anup@brainfault.org>
docs/domain_support.md
include/sbi/sbi_domain.h
include/sbi/sbi_domain_context.h [new file with mode: 0755]
lib/sbi/objects.mk
lib/sbi/sbi_domain.c
lib/sbi/sbi_domain_context.c [new file with mode: 0755]