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

How to register AEP to handle AEX?

shen_y_
Beginner
306 Views

Hi,

    When app is executing in the enclave, can it be interrupted by system clock interrupts?  

    How to register an AEP , which is used as an EENTER parameter, to handle interrupts that caused enclave AEX? I've noted the sgx_register_exception_handler() api , but it's used to handle exceptions and registered in enclave. That's not what I need.

 

Thanks

Yu

 

0 Kudos
1 Reply
Juan_d_Intel
Employee
306 Views

The uRTS automatically registers (or provides) the AEP for each enclave call (ECALL).

If an AEX happens, such as a clock interrupt, after the interrupt is served the OS will return control to the AEP, which will then ERESUME into the enclave.

The sgx_register_exception_handler() API is to register a routine that will handle exceptions inside the enclave, for instance if an enclave executes an illegal instruction such as CPUID.

Reply