Skip to content

Add a vmm test for TDX with Guest VSM, Credential Guard, and HVCI #1305

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

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

Conversation

smalis-msft
Copy link
Contributor

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

This PR adds a vmm test for TDX with Guest VSM, Credential Guard, and HVCI. As we don't currently have a way to execute commands in the guest, no verification that the guest sees these as enabled is performed yet.

This necessitated some refactoring around how we handle IMC, as we need to enable VSM in the guest's registry. Ideally we would have a way to dynamically construct registry hives for IMC during test execution. This would allow us to mix and match the pieces we need. Unfortunately, no cross-platform crate exists for doing this. Instead, this PR creates a second hive file with the VSM keys set, and switches between this hive and the pipette startup hive depending on what is asked for. Once we have the ability to run pipette in isolated guests this second hive file can be easily updated to include the pipette startup keys as well.

This PR also includes the bits necessary for running such a test on OpenVMM someday, however today attempting to do so will always fail, since we don't have proper isolation support.

Fixes #1310

@smalis-msft smalis-msft requested a review from a team as a code owner May 6, 2025 20:45
@smalis-msft smalis-msft requested a review from tjones60 May 6, 2025 20:46
@smmalis37
Copy link
Contributor

I gotta say I did not expect this to just pass CI...

@smalis-msft
Copy link
Contributor Author

Ok yeah this is not working yet.

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 with Guest VSM VMM test
2 participants