Add TD Info as Initialization Header#102
Add TD Info as Initialization Header#102yuehtingchen wants to merge 10 commits intomicrosoft:mainfrom
Conversation
This reverts commit 378acf1.
igvm_defs/src/lib.rs
Outdated
| pub used_size: u64, | ||
| } | ||
|
|
||
| /// Optional launch time configurations for VMs running on TDX platform. |
There was a problem hiding this comment.
Is this really optional if it impacts the measurement of the guest? It's optional in the sense of "if you don't specify this, the VMM may choose whatever value it likes" correct?
There was a problem hiding this comment.
Yes. It's optional in the sense that the IGVM file should load even if you don't specify these fields. I don't think all guests care if the measurements are different across different hosts, so some guests may choose not to specify these fields.
There was a problem hiding this comment.
But whatever the host has chosen to put for this value, will be reflected in the measurement report right?
|
Hi @yuehtingchen, I have a few comments, just from the git POV, I'm not an IGVM expert so I'll leave that to the maintainers.
Thanks! |
|
Note that we do squash PRs for this repo, but the feedback is still useful as it helps reviewers logically reason about changes. |
| /// Reserved, must be zero. | ||
| pub reserved: u32, | ||
| /// XFAM for CPU extended features setting. | ||
| pub xfam: u64, |
There was a problem hiding this comment.
should we have fields for mrconfigid, mrowner, mrownerconfig as well?
There was a problem hiding this comment.
No, those are attestation fields that will be handled someday by CoRIM. This structure defines only fields that control host construction of the TD and should not define fields that the host does not configure as part of the load process.
TDX VMs require additional launch time configurations for better flexibility