We now handle timer interrupts in the SM. An enclave can cause a DDOS attack on other enclaves/SM if it doesn't yield the CPU. Not delegating time interrupts to S-mode prevents this. SM now handles time interrupts. Before an enclave runs, the SM sets a timer interrupt with some time slice, the max QUANTA the enclave should run. If the enclave lives to this QUANTA without yielding the CPU, the enclave will receive a machine timer interrupt which isn't delegated to the enclave and the SM will have to step in.
We now handle timer interrupts in the SM. An enclave can cause a DDOS attack on other enclaves/SM if it doesn't yield the CPU. Not delegating time interrupts to S-mode prevents this. SM now handles time interrupts. Before an enclave runs, the SM sets a timer interrupt with some time slice, the max QUANTA the enclave should run. If the enclave lives to this QUANTA without yielding the CPU, the enclave will receive a machine timer interrupt which isn't delegated to the enclave and the SM will have to step in.