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

Support multiple TDX Module identities #194

Merged
merged 2 commits into from
Mar 25, 2024

Conversation

gaojiaqi7
Copy link
Contributor

@gaojiaqi7 gaojiaqi7 commented Mar 21, 2024

migtd-policy-generator fetch the tcbInfo of all the platforms from backend server and enumerate all the possible tdxModuleIdentities.

Closes: #193

Policy::TdxModule(t) => Some(t),
_ => None,
})
pub fn get_tdx_module_info_policy(&self) -> Vec<&TdxModuleInfo> {
Copy link
Contributor

Choose a reason for hiding this comment

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

why uses vec?

@gaojiaqi7 gaojiaqi7 force-pushed the 0321/support_multiple_tdx_module_id branch from 03c389d to 0be025e Compare March 24, 2024 11:13
There might be multiple `TdxModuleIdentities` supported. Find the one
that matches.

Add related unit test for Tdx Module policy

Signed-off-by: Jiaqi Gao <[email protected]>
From the `tcbInfo`s fetched from backend server, enumerate all the TDX
Module identities that are supported and write them into policy.

Signed-off-by: Jiaqi Gao <[email protected]>
@gaojiaqi7 gaojiaqi7 force-pushed the 0321/support_multiple_tdx_module_id branch from 0be025e to 41250fb Compare March 25, 2024 01:43
@jyao1 jyao1 merged commit fc6fe73 into intel:main Mar 25, 2024
16 checks passed
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.

Consider support tdxModuleIdentities with id TDX_02 in policy
2 participants