<feed xmlns='http://www.w3.org/2005/Atom'>
<title>opensbi.git/include/sbi/sbi_domain_context.h, branch master</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://cgit.235523.xyz/opensbi.git/atom/include/sbi/sbi_domain_context.h?h=master</id>
<link rel='self' href='http://cgit.235523.xyz/opensbi.git/atom/include/sbi/sbi_domain_context.h?h=master'/>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/'/>
<updated>2024-10-25T17:30:10Z</updated>
<entry>
<title>lib: sbi_domain: Use domain data support for per-domain hart context</title>
<updated>2024-10-25T17:30:10Z</updated>
<author>
<name>Anup Patel</name>
<email>apatel@ventanamicro.com</email>
</author>
<published>2024-09-23T08:16:12Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=f609fd85846ac35e2780df50ba0ad801622e13d8'/>
<id>urn:sha1:f609fd85846ac35e2780df50ba0ad801622e13d8</id>
<content type='text'>
The per-domain hartindex_to_context_table[] is yet another per-domain
data required for implementing hart entry into (or exit from) domain.

Use the recently added domain data support for per-domain hart context
so that a dedicated hartindex_to_context_table[] in struct sbi_domain
is not needed.

Signed-off-by: Anup Patel &lt;apatel@ventanamicro.com&gt;
Reviewed-by: Yu Chien Peter Lin &lt;peterlin@andestech.com&gt;
</content>
</entry>
<entry>
<title>include: sbi: Remove cyclic include in sbi_domain_context.h</title>
<updated>2024-10-25T17:30:04Z</updated>
<author>
<name>Anup Patel</name>
<email>apatel@ventanamicro.com</email>
</author>
<published>2024-09-21T16:16:15Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=65d4e9be95294c04a9a6b1be9215e9d571aba479'/>
<id>urn:sha1:65d4e9be95294c04a9a6b1be9215e9d571aba479</id>
<content type='text'>
The sbi_domain_context.h includes sbi_domain.h and the sbi_domain.h
also includes sbi_domain_context.h. Remove this cyclic include in
sbi_domain_context.h.

Signed-off-by: Anup Patel &lt;apatel@ventanamicro.com&gt;
Reviewed-by: Samuel Holland &lt;samuel.holland@sifive.com&gt;
</content>
</entry>
<entry>
<title>lib: sbi: Use current_hartindex() where possible</title>
<updated>2024-09-25T06:33:30Z</updated>
<author>
<name>Samuel Holland</name>
<email>samuel.holland@sifive.com</email>
</author>
<published>2024-08-30T15:49:07Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=15c4e285db3fe09bf96bddb7c15acb8d8827e1fe'/>
<id>urn:sha1:15c4e285db3fe09bf96bddb7c15acb8d8827e1fe</id>
<content type='text'>
This avoids calls to the expensive sbi_hartid_to_hartindex() function
and also makes the firmware smaller.

Signed-off-by: Samuel Holland &lt;samuel.holland@sifive.com&gt;
Reviewed-by: Anup Patel &lt;anup@brainfault.org&gt;
</content>
</entry>
<entry>
<title>lib: sbi_domain_context: Fix file permissions</title>
<updated>2024-09-23T12:56:47Z</updated>
<author>
<name>Samuel Holland</name>
<email>samuel.holland@sifive.com</email>
</author>
<published>2024-08-30T15:56:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=040fcf49ab9d428018eb3e04640df123594d2165'/>
<id>urn:sha1:040fcf49ab9d428018eb3e04640df123594d2165</id>
<content type='text'>
These C source files should not be marked as executable.

Signed-off-by: Samuel Holland &lt;samuel.holland@sifive.com&gt;
Reviewed-by: Anup Patel &lt;anup@brainfault.org&gt;
</content>
</entry>
<entry>
<title>sbi: sbi_domain_context: Fix trap context for domain context switching</title>
<updated>2024-06-13T13:51:27Z</updated>
<author>
<name>Yu Chien Peter Lin</name>
<email>peterlin@andestech.com</email>
</author>
<published>2024-06-07T11:39:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=3a94a3258039f225d068cb575844062c3f86bc03'/>
<id>urn:sha1:3a94a3258039f225d068cb575844062c3f86bc03</id>
<content type='text'>
Save/restore sbi_trap_context during domain context switching to
ensure proper trap handling and isolation. This maintains correct
domain-specific state, avoiding context corruption.

Fixes: abea949721bc ("lib: sbi: Introduce trap context")
Signed-off-by: Yu Chien Peter Lin &lt;peterlin@andestech.com&gt;
Reviewed-by: Alvin Chang &lt;alvinga@andestech.com&gt;
Tested-by: Alvin Chang &lt;alvinga@andestech.com&gt;
Reviewed-by: Yong Li &lt;yong.li@intel.com&gt;
Tested-by: Yong Li &lt;yong.li@intel.com&gt;
</content>
</entry>
<entry>
<title>lib: sbi: Add initial domain context management support</title>
<updated>2024-03-10T04:56:42Z</updated>
<author>
<name>Qingyu Shang</name>
<email>2931013282@sjtu.edu.cn</email>
</author>
<published>2024-03-06T11:15:58Z</published>
<link rel='alternate' type='text/html' href='http://cgit.235523.xyz/opensbi.git/commit/?id=e11025c52d70c8a6042965d5f368ae9d14bd80d6'/>
<id>urn:sha1:e11025c52d70c8a6042965d5f368ae9d14bd80d6</id>
<content type='text'>
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 &lt;2931013282@sjtu.edu.cn&gt;
Reviewed-by: Yu Chien Peter Lin &lt;peterlin@andestech.com&gt;
Tested-by: Yu Chien Peter Lin &lt;peterlin@andestech.com&gt;
Reviewed-by: Anup Patel &lt;anup@brainfault.org&gt;
</content>
</entry>
</feed>
