Intel® Software Guard Extensions (Intel® SGX)
Discussion board focused on hardware-based isolation and memory encryption to provide extended code protection in solutions.

How to register AEP to handle AEX?

shen_y_
Beginner
529 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
529 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.

0 Kudos
Reply