openenclave / openenclave

SDK for developing enclaves
https://openenclave.io/sdk/
MIT License
1.05k stars 354 forks source link

OE exception handling in simulation mode #2124

Open prp opened 5 years ago

prp commented 5 years ago

OE currently only supports exception handling in hardware mode (as the implementation is SGX specific).

During development/testing, we heavily rely on simulation mode, and therefore want to avoid big divergences between the two modes. Exception handling is an important enough feature that we require it in simulation mode.

If OE doesn't handle exceptions in simulation mode, we would have to implement our own mechanism for that, entirely bypassing the OE exception handling API when in simulation mode. (While the implementation of enclave exceptions in simulation mode would be quite different from hardware mode, it should also be simpler.)

yakman2020 commented 5 years ago

It would probably be more effective to use an ACC VM if your hardware doesn't support SGX.