Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

td-shim: use static memory for temp stacks of APs #703

Conversation

gaojiaqi7
Copy link
Member

@gaojiaqi7 gaojiaqi7 commented May 24, 2024

Remove the use of heap can improve the functional safety. A piece of large enough static memory is allocated to hold the temparary stacks of APs which can support maximum 15 APs.

Related issue: #685

Remove the use of heap can improve the functional safety. A piece of
large enough static memory is allocated to hold the temparary stacks of
APs which can support maximum 15 APs.

Signed-off-by: Jiaqi Gao <jiaqi.gao@intel.com>
@@ -18,6 +18,8 @@ use crate::asm::{ap_relocated_func_addr, ap_relocated_func_size};
// The maximum size of memory used for AP stacks is 30 KB.
const MAX_WORKING_AP_COUNT: u32 = 15;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I filed #705 for clean up.

@jyao1 jyao1 merged commit 8835cf2 into confidential-containers:main May 28, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants