English

SGX Switchless Calls Made Configless

Cryptography and Security 2023-07-10 v2

Abstract

Intel's software guard extensions (SGX) provide hardware enclaves to guarantee confidentiality and integrity for sensitive code and data. However, systems leveraging such security mechanisms must often pay high performance overheads. A major source of this overhead is SGX enclave transitions which induce expensive cross-enclave context switches. The Intel SGX SDK mitigates this with a switchless call mechanism for transitionless cross-enclave calls using worker threads. Intel's SGX switchless call implementation improves performance but provides limited flexibility: developers need to statically fix the system configuration at build time, which is error-prone and misconfigurations lead to performance degradations and waste of CPU resources. ZC-SWITCHLESS is a configless and efficient technique to drive the execution of SGX switchless calls. Its dynamic approach optimises the total switchless worker threads at runtime to minimise CPU waste. The experimental evaluation shows that ZC-SWITCHLESS obviates the performance penalty of misconfigured switchless systems while minimising CPU waste.

Keywords

Cite

@article{arxiv.2305.00763,
  title  = {SGX Switchless Calls Made Configless},
  author = {Peterson Yuhala and Michael Paper and Timothée Zerbib and Pascal Felber and Valerio Schiavoni and Alain Tchana},
  journal= {arXiv preprint arXiv:2305.00763},
  year   = {2023}
}

Comments

10 pages, 53rd Annual IEEE/IFIP International Conference on Dependable Systems and Networks (DSN)

R2 v1 2026-06-28T10:22:23.991Z