-
Notifications
You must be signed in to change notification settings - Fork 153
Add OpenHCL telemetry for VMGS provisioning #2024
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
base: main
Are you sure you want to change the base?
Conversation
20afa23
to
44bfa47
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR adds comprehensive telemetry logging for VMGS provisioning and TPM operations in OpenHCL. The goal is to provide structured, queryable logs that can track provisioning success and indicate whether Trusted Launch features are being enabled.
Key changes include:
- Added operation-specific telemetry logs with timing metrics across TPM and VMGS operations
- Enhanced logging for AK cert provisioning, NV read/write operations, and GSP callbacks
- Added BIOS GUID tracking to TPM device resources for better telemetry correlation
Reviewed Changes
Copilot reviewed 13 out of 14 changed files in this pull request and generated 4 comments.
Show a summary per file
File | Description |
---|---|
vm/vmgs/vmgs/src/vmgs_impl.rs | Changed log level and added op_type for VMGS provisioning telemetry |
vm/devices/tpm_resources/src/lib.rs | Added bios_guid field to TpmDeviceHandle for logging purposes |
vm/devices/tpm/src/tpm_helper.rs | Added comprehensive telemetry for TPM NV read/write operations with timing |
vm/devices/tpm/src/lib.rs | Added detailed AK cert and key provisioning telemetry with error handling |
vm/devices/get/guest_emulation_transport/src/client.rs | Added GSP callback operation telemetry |
openhcl/underhill_attestation/src/lib.rs | Added VMGS decryption telemetry with GSP type tracking |
Various config files | Updated to pass bios_guid parameter and added dependencies |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
b39f77b
to
e66b622
Compare
openvmm/openvmm_entry/src/lib.rs
Outdated
guest_secret_key: None, | ||
logger: None, | ||
is_confidential_vm: false, | ||
// TODO: generate an actual BIOS guid and put it here |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
121bace
to
966436e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change adds telemetry (in the form of event markers in our logs) around operations of interest for VMGS provisioning and certain vTPM features (AKPub, AKCert, etc.). The goal of this approach is to have structured, easily queryable data that can show that provisioning is successful and indicate whether Trusted Launch features (OpenHCL-provisioned VMGS, GSP key) are being enabled.
This PR is intended to match a corresponding legacy HCL change as closely as possible, given the differences in their logging implementations. In particular, the operation names (here, added as an
op_type
property on traces) and other metadata properties should match.