intel / intel/confidential-computing.sgx.sdk

threads 1:1 in binding mode of TCS?return SGX_ERROR_OUT_OF_TCS

Open
#36 12 comments 0 reactions 0 assignees View on GitHub
question
Dominant language
C++
Stars
2
Forks
3
PR merge metrics
No merged PRs in 30d

Description

1.untrusted threads number must less than trusted threads in binding mode of TCS policy?
if the same threads, it will not can be used for binding urts threads.
2.in is_special_ecall is false branch
trust_thread = _acquire_thread();
// for edmm feature, we don't support simulation mode yet
// m_utility_thread will be NULL in simulation mode
if(NULL == trust_thread && NULL != m_utility_thread)
{
m_need_to_wait_for_new_thread_cond.lock();
m_utility_thread->get_enclave()->fill_tcs_mini_pool_fn();
m_need_to_wait_for_new_thread = true;
while(m_need_to_wait_for_new_thread != false)
{
m_need_to_wait_for_new_thread_cond.wait();
}
m_need_to_wait_for_new_thread_cond.unlock();
trust_thread = _acquire_thread();
}

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.