Skip to content

TDX: Configure MSR intercepts for VTL 1, refactor MSR intercepts in general #1251

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 1 commit into from
Apr 29, 2025

Conversation

smalis-msft
Copy link
Contributor

Remove the MSR bitmap struct since we were never storing it anywhere, just set MSR bits with individual calls. This is simpler and uses less stack space, but slightly less efficient since we now make more vmcs writes overall, but since these are cold paths with a small number of calls I think this tradeoff is worthwhile. Then update intercept registration to set the required bits.

@smalis-msft smalis-msft requested a review from a team as a code owner April 28, 2025 15:54
@chris-oo
Copy link
Member

Is there a way for us to add inspection for these fields so we can know what MSR bits are set?

@smalis-msft
Copy link
Contributor Author

It's just part of the VMCS, so it'd be covered by #1119

@chris-oo
Copy link
Member

Fine, but someone should probably tackle that one soon.

@smalis-msft smalis-msft enabled auto-merge (squash) April 28, 2025 18:38
@smalis-msft smalis-msft merged commit 9e24e09 into microsoft:main Apr 29, 2025
27 checks passed
@smalis-msft smalis-msft deleted the tdx-msr-intercept branch April 29, 2025 17:03
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