Skip to content

Support reblock#1751

Draft
kuqin12 wants to merge 3 commits intomicrosoft:release/202511from
kuqin12:support_reblock
Draft

Support reblock#1751
kuqin12 wants to merge 3 commits intomicrosoft:release/202511from
kuqin12:support_reblock

Conversation

@kuqin12
Copy link
Copy Markdown
Contributor

@kuqin12 kuqin12 commented Apr 7, 2026

Description

Current method of migrating MM accessible buffers is leaving the previously unblocked buffers unblocked, which will pose the risk of failing DRTM validation.

This change adds a new interface to support reblock pages to mitigate the issue.

For details on how to complete these options and their meaning refer to CONTRIBUTING.md.

  • Impacts functionality?
  • Impacts security?
  • Breaking change?
  • Includes tests?
  • Includes documentation?

How This Was Tested

This was tested using QEMU Q35 and booted to UEFI shell.

Integration Instructions

Call MmReblockMemoryRequest after the old buffer is being replaced.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 7, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
⚠️ Please upload report for BASE (release/202511@afc22fc). Learn more about missing BASE report.

Additional details and impacted files
@@                Coverage Diff                @@
##             release/202511    #1751   +/-   ##
=================================================
  Coverage                  ?    0.71%           
=================================================
  Files                     ?     1004           
  Lines                     ?   345997           
  Branches                  ?     2669           
=================================================
  Hits                      ?     2465           
  Misses                    ?   343365           
  Partials                  ?      167           
Flag Coverage Δ
FmpDevicePkg 9.53% <ø> (?)
MdeModulePkg 0.21% <ø> (?)
NetworkPkg 0.55% <ø> (?)
PolicyServicePkg 30.42% <ø> (?)
SecurityPkg 1.61% <ø> (?)
UnitTestFrameworkPkg 11.70% <ø> (?)

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.

@apop5
Copy link
Copy Markdown
Collaborator

apop5 commented Apr 7, 2026

Would it be possible, at end of dxe/ready to bot, to have mm produce a debug list of unblocked regions? This would allow auditing of what is unblocked, and maybe enable tracking back any other regions that might need reblocked?

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