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

Add much of the basic wiring for TDX Guest VSM support. #541

Merged
merged 2 commits into from
Jan 8, 2025

Conversation

smalis-msft
Copy link
Contributor

@smalis-msft smalis-msft commented Dec 19, 2024

This is just most of the inner wiring, replacing hardcoded VTLs with the actual ones. Should introduce no functional changes just yet.

@smalis-msft smalis-msft requested a review from a team as a code owner December 19, 2024 17:49
@mebersol
Copy link
Collaborator

otherwise lgtm

@smalis-msft

This comment was marked as outdated.

openhcl/virt_mshv_vtl/src/processor/tdx/mod.rs Outdated Show resolved Hide resolved
openhcl/virt_mshv_vtl/src/processor/tdx/mod.rs Outdated Show resolved Hide resolved

let efer = self.vp.backing.efer;
let efer = self.vp.backing.efer[self.vtl];

Ok(Registers {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems like we need a general scrub of tdx_enter_guest_state? rip, rsp, etc

Copy link
Contributor Author

@smalis-msft smalis-msft Jan 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, I'm going to take as a follow-up auditing all the calls to the runner (vp_state, enter_guest_state, etc).

sluck-msft
sluck-msft previously approved these changes Jan 6, 2025
@smalis-msft smalis-msft merged commit 8cf8aa4 into microsoft:main Jan 8, 2025
25 checks passed
@smalis-msft smalis-msft deleted the tdx-vsm-wiring branch January 8, 2025 16:52
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.

5 participants