-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the page encryption intent explicit.
Previously we just OR-ed the encryption bit to the physical address whenever needed, but this won't work with TDX as the bits work the other way around. Therefore, let's add a new interface that lets you deal with page table entries and the encryptedness of said page explicitly. Next steps are to generalize the handling of the encrypted bit out of `paging.rs` and into the HAL. One downside with the current implementation is that you can still call the underlying `set_addr()`/`addr()` directly, netting you an PhysAddr with the encryptedness state bit set unexpectedly. However, that'll likely mean reimplementing `PageTable`/`PageTableEntry` ourselves, and I'm questioning whether that's worth the trouble. Bug: 350496083 Change-Id: Id7d19773749a35429459523cd156d6ca44568ea6
- Loading branch information
Showing
6 changed files
with
92 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters