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

underhill_mem: Wire up TLB access for flushing and locking #841

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

smalis-msft
Copy link
Contributor

@smalis-msft smalis-msft commented Feb 11, 2025

This creates a new trait, TlbFlushLockAccess, that is used to allow memory protections management code to access the VP's TLB flush and lock machinery. It then adds a new parameter of this type to certain methods on ProtectIsolatedMemory, and adds calls to it where appropriate.

This also adds a small hack to avoid an ongoing layering discussion. We're unsure of the right approach to fix it, but the rest of the code should be fine as-is.

Open question: Do we have the right calls everywhere needed? I tried to match up our code with the legacy HCL's, but our design and flow are very different, so I'm not 100% confident I got them all correct.

Part 1 of #849

@smalis-msft smalis-msft marked this pull request as ready for review February 12, 2025 20:01
@smalis-msft smalis-msft requested a review from a team as a code owner February 12, 2025 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants