Skip to content

TDX: Remove RwLock on tlb flush state tracking to allow reads to interleave with a single write #1358

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

Merged
merged 10 commits into from
May 16, 2025

Conversation

smalis-msft
Copy link
Contributor

@smalis-msft smalis-msft commented May 14, 2025

This is based on the legacy HCL's, but slightly modified to fit our slightly different organization. Tested that a 128 VP TDX VM with VSM still boots and shuts down cleanly.

Closes #699 together with #1325.

@smalis-msft smalis-msft requested a review from a team as a code owner May 14, 2025 19:39
@smalis-msft smalis-msft changed the title TDX: Convert tlb flush state tracking to be purely atomic, with no locks TDX: Convert tlb flush state tracking to allow reads to interleave with a single write May 14, 2025
@smalis-msft smalis-msft changed the title TDX: Convert tlb flush state tracking to allow reads to interleave with a single write TDX: Remove RwLock on tlb flush state tracking to allow reads to interleave with a single write May 14, 2025
@smalis-msft smalis-msft enabled auto-merge (squash) May 16, 2025 17:36
@smalis-msft smalis-msft merged commit f29207d into microsoft:main May 16, 2025
28 checks passed
@smalis-msft smalis-msft deleted the atomic-tlb branch May 16, 2025 18:16
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.

[TDX] Improve TLB lock code
3 participants