Intel® Software Guard Extensions (Intel® SGX)
Use hardware-based isolation and memory encryption to provide more code protection in your solutions.

Can an OS swap out an enclave thread?

Fan
Beginner
284 Views

With common OSes (e.g. Linux), threads are scheduled based on timer interrupts. But SGX is somewhat different since interrupts are handled as AEXes. So I'm wondering are SGX threads subject to OS scheduling too? Is there a way to mask timer interrupts so that a SGX thread can continue execution to the end without being scheduled out?

0 Kudos
1 Solution
PadmaPriya_M_Intel
284 Views

From an OS perspective, enclave threads are just normal threads. The OS does not “know” about SGX. So, SGX threads are treated the same way as normal threads and can be scheduled out like any other thread.

View solution in original post

1 Reply
PadmaPriya_M_Intel
285 Views

From an OS perspective, enclave threads are just normal threads. The OS does not “know” about SGX. So, SGX threads are treated the same way as normal threads and can be scheduled out like any other thread.

Reply