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

A safe interface to read/write page table #131

Open
jinbpark opened this issue Jul 26, 2023 · 0 comments
Open

A safe interface to read/write page table #131

jinbpark opened this issue Jul 26, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@jinbpark
Copy link
Collaborator

jinbpark commented Jul 26, 2023

  • Currently, we write a page table entry in a typical way, (e.g., self.0 = RawPTE::new(0);), but this is not a safe way to modify page table entries, as it requires a strict order of instructions.

    • e.g., secure way: str something to pte; barrier_instructions; tlb_instructions; it should be read/written atomically and proper barrier or tlb instructions must be followed right after.
  • As of now, this is not a big problem as we don't modify RTT after realm kernel booting. But, once it gets implemented, the current way to access page_table might cause subtle bugs.

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

No branches or pull requests

1 participant