-
Notifications
You must be signed in to change notification settings - Fork 161
firmware_uefi: Add EFI Diagnostics #1439
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
firmware_uefi: Add EFI Diagnostics #1439
Conversation
… test arm CI with new main
|
FYI-- This PR is a rev2. The other PR I abandoned since it branched off an older branch of main that had ARM issues-- it was easier to make a new PR off a different branch that squashed and cherry-picked the changes from the original |
chris-oo
left a comment
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.
Changes LGTM but should we probably split the uefi firmware update to a different PR for ease of cherry pick?
This PR adds EFI Diagnostics, which is a service used to parse UEFI diagnostics data from an in-memory buffer and send it to our tracing facilities.
The UEFI firmware will write the GPA of the advanced logger buffer to an Io port intercept called
SET_EFI_DIAGNOSTICS_GPA.The diagnostics service is responsible for reading guest memory at the specified GPA and parsing the data. This gets triggered when the UEFI firmware writes to an Io port intercept called
PROCESS_EFI_DIAGNOSTICS.The
PROCESS_EFI_DIAGNOSTICSUefiCommand gets triggered by the following conditions:PROCESS_EFI_DIAGNOSTICS)PROCESS_EFI_DIAGNOSTICS)The simplest way to test this is to run:
See comments below for example output.