Skip to content

Comments

AdvLoggerPkg: Check for migrated buffer on ReadyToLock notification#833

Merged
makubacki merged 1 commit intomicrosoft:release/202502from
makubacki:trad_smm_advlogger_readytolock_2
Feb 23, 2026
Merged

AdvLoggerPkg: Check for migrated buffer on ReadyToLock notification#833
makubacki merged 1 commit intomicrosoft:release/202502from
makubacki:trad_smm_advlogger_readytolock_2

Conversation

@makubacki
Copy link
Member

Description

  1. Adds a ReadyToLock handler to ensure that any buffer migration that may not have occurred prior to that point happens at ReadyToLock.
  2. Aligns Traditional MM and Standalone MM code on the ReadyToLock boundary.
  3. Also ensures all calls to check for a new logger are gated on PcdAdvancedLoggerFixedInRAM to avoid unnecessary checks when the logger won't be migrated.
  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

  • Boot Traditional SMM virtual machine platform to Windows with change
  • Boot Standalone MM virtual machine platform to Windows with change
  • Boot Intel platform to Windows with change (Traditional and Standalone MM)
  • Dump log at EFI shell
  • Dump log uses the latest decode Python script in Windows

Integration Instructions

  • N/A

Add a check to ReadyToLock to ensure the SMM core logger is moved to
the migrated logger buffer if it was not already.

Also, do not look for a new logger buffer after ReadyToLock, to
avoid SMM moving to a new buffer after the trust boundary transition.

This updates both the Traditional MM and Standalone MM
AdvLoggerAccessLib instances for consistency.

Also ensures all calls to check for a new logger are gated on
PcdAdvancedLoggerFixedInRAM to avoid unnecessary checks when the
logger won't be migrated.

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
@makubacki makubacki self-assigned this Feb 21, 2026
@codecov-commenter
Copy link

codecov-commenter commented Feb 21, 2026

Codecov Report

❌ Patch coverage is 0% with 72 lines in your changes missing coverage. Please review.
⚠️ Please upload report for BASE (release/202502@e0fff00). Learn more about missing BASE report.

Files with missing lines Patch % Lines
...ibrary/AdvLoggerMmAccessLib/AdvLoggerMmAccessLib.c 0.00% 29 Missing ⚠️
...rary/AdvLoggerSmmAccessLib/AdvLoggerSmmAccessLib.c 0.00% 28 Missing ⚠️
...rary/AdvancedLoggerLib/SmmCore/AdvancedLoggerLib.c 0.00% 15 Missing ⚠️
Additional details and impacted files
@@               Coverage Diff                @@
##             release/202502    #833   +/-   ##
================================================
  Coverage                  ?   4.63%           
================================================
  Files                     ?      36           
  Lines                     ?    4269           
  Branches                  ?     276           
================================================
  Hits                      ?     198           
  Misses                    ?    4069           
  Partials                  ?       2           
Flag Coverage Δ
AdvLoggerPkg 4.63% <0.00%> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@makubacki makubacki merged commit 039747f into microsoft:release/202502 Feb 23, 2026
28 checks passed
apop5 pushed a commit that referenced this pull request Feb 25, 2026
…833)

## Description

1. Adds a ReadyToLock handler to ensure that any buffer migration that
may not have occurred prior to that point happens at ReadyToLock.
2. Aligns Traditional MM and Standalone MM code on the ReadyToLock
boundary.
3. Also ensures all calls to check for a new logger are gated on
PcdAdvancedLoggerFixedInRAM to avoid unnecessary checks when the logger
won't be migrated.

- [x] Impacts functionality?
- [ ] Impacts security?
- [ ] Breaking change?
- [ ] Includes tests?
- [ ] Includes documentation?

## How This Was Tested

- Boot Traditional SMM virtual machine platform to Windows with change
- Boot Standalone MM virtual machine platform to Windows with change
- Boot Intel platform to Windows with change (Traditional and Standalone
MM)
- Dump log at EFI shell
- Dump log uses the latest decode Python script in Windows

## Integration Instructions

- N/A

Signed-off-by: Michael Kubacki <michael.kubacki@microsoft.com>
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.

4 participants