keystone-enclave / riscv-pk

Security monitor for Keystone Enclave (mirror of riscv-pk). Will be deprecated when openSBI port is ready
Other
36 stars 14 forks source link

Security monitor should swap all S-mode CSRs on context switch #34

Closed dayeol closed 5 years ago

dayeol commented 5 years ago

The security monitor needs to swap all relevant S-mode CSRs on context switch between the enclave and the host. Right now, we only swap important CSRs: satp and stvec

dkohlbre commented 5 years ago

This was done in https://github.com/keystone-enclave/riscv-pk/commit/3a2df8acf8581b305dee42e203a729f7c410c8c2