Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reimplemented context switching between security domains #41

Merged
merged 12 commits into from
Mar 7, 2024

Conversation

wojciechozga
Copy link
Member

@wojciechozga wojciechozga commented Mar 7, 2024

This PR brings major revision of the context switch implementation. It introduces:

  • Lightweight context switches (in assembly) between hypervisor&security monitor AND confidential vm&security monitor
  • A heavy context switch (implemented in Rust) that stores CSRs of one domain and reloads CSR of the next security domain.

Additionally, we got rid of the riscv crate in favor of a smaller CSR manipulation implementation.

Further work is needed to make sure that all relevant CSRs are stored/loaded during context switches.

…ust code. Simplifying the build scripts. Pass on the documentation (README and DEVELOPMENT)

Signed-off-by: Wojciech Ozga <woz@zurich.ibm.com>
…support DMA API

Signed-off-by: Wojciech Ozga <woz@zurich.ibm.com>
Signed-off-by: Wojciech Ozga <woz@zurich.ibm.com>
Signed-off-by: Wojciech Ozga <woz@zurich.ibm.com>
Signed-off-by: Wojciech Ozga <woz@zurich.ibm.com>
Signed-off-by: Wojciech Ozga <woz@zurich.ibm.com>
Signed-off-by: Wojciech Ozga <woz@zurich.ibm.com>
Signed-off-by: Wojciech Ozga <woz@zurich.ibm.com>
Signed-off-by: Wojciech Ozga <woz@zurich.ibm.com>
@wojciechozga wojciechozga added the enhancement New feature or request label Mar 7, 2024
@wojciechozga wojciechozga self-assigned this Mar 7, 2024
Signed-off-by: Wojciech Ozga <woz@zurich.ibm.com>
Signed-off-by: Wojciech Ozga <woz@zurich.ibm.com>
…ith CI

Signed-off-by: Wojciech Ozga <woz@zurich.ibm.com>
@wojciechozga wojciechozga merged commit 7f53871 into main Mar 7, 2024
4 checks passed
@wojciechozga wojciechozga deleted the woz/ctxswitch branch March 15, 2024 09:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant