Skip to content

EfiDiagnostics: Define important MsvmPkg INFO logs - #126

Merged
Maheer Aeron (maheeraeron) merged 1 commit into
microsoft:mainfrom
maheeraeron:user/maheeraeron/new-logs
Oct 26, 2026
Merged

Maheer Aeron (maheeraeron) merged 1 commit into
microsoft:mainfrom
maheeraeron:user/maheeraeron/new-logs

Conversation

@maheeraeron

@maheeraeron Maheer Aeron (maheeraeron) commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

OpenVMM and Hyper-V have a limitation where we cannot emit INFO logs by default through our tracing backends due to various reasons, most importantly regarding log output volume from upstream INFO logs.

We have thus previously agreed that we will only emit ERROR and WARN logs, but there are certain INFO logs that we need to guide us through what happened during boot for triage.

This PR defines the union of warn and info flags, DEBUG_WARN | DEBUG_INFO, as an EFI_DIAGNOSTICS_IMPORTANT_INFO log, which the platform VMM can handle to their liking.

@maheeraeron

Maheer Aeron (maheeraeron) commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator Author

Mike Ebersol (@mebersol), Oliver Smith-Denny (@os-d), Chris Oo (@chris-oo), John Starks (@jstarks) Any additional logs around MsvmPkg that you guys think we should mark important?

@maheeraeron

Copy link
Copy Markdown
Collaborator Author

I'm thinking we should probably define, in an EfiDiagnostics header, some constant for important logs. Which would be the union of DEBUG_WARN and DEBUG_INFO

@os-d

Copy link
Copy Markdown
Contributor

I don't have any logs I would recommend. I think this approach is fine for platform code, I do think you should make sure to document this clearly because it is a different paradigm than any other logging.

@maheeraeron
Maheer Aeron (maheeraeron) force-pushed the user/maheeraeron/new-logs branch 2 times, most recently from 7ee0a57 to a1ef1b5 Compare October 21, 2026 19:52
@maheeraeron
Maheer Aeron (maheeraeron) marked this pull request as ready for review October 21, 2026 19:52
@mebersol

Copy link
Copy Markdown
Collaborator

Mike Ebersol (@mebersol), Oliver Smith-Denny (@os-d), Chris Oo (@chris-oo), John Starks (@jstarks) Any additional logs around MsvmPkg that you guys think we should mark important?
I provided offline feedback for a few more DEBUG_WARN that should be important instead

@maheeraeron
Maheer Aeron (maheeraeron) merged commit 7617a2c into microsoft:main Oct 26, 2026
14 checks passed
@maheeraeron
Maheer Aeron (maheeraeron) deleted the user/maheeraeron/new-logs branch October 26, 2026 22:27
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.

3 participants