Skip to content

[REBASE & FF] Revert Mu Commits in Favor of edk2 Commits#1810

Merged
os-d merged 3 commits into
microsoft:release/202511from
os-d:cp_stuff
May 29, 2026
Merged

[REBASE & FF] Revert Mu Commits in Favor of edk2 Commits#1810
os-d merged 3 commits into
microsoft:release/202511from
os-d:cp_stuff

Conversation

@os-d
Copy link
Copy Markdown
Contributor

@os-d os-d commented May 29, 2026

Description

This reverts the Mu version of the MmCommunicationDxe Comm Buffer Init fix and cherry-picks the edk2 version as well as cherry-picking the VA_LIST ABI change.

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

How This Was Tested

N/A.

Integration Instructions

N/A.

os-d and others added 3 commits May 29, 2026 07:21
This reverts commit 1800e61
as it has been upstreamed to edk2.
Currently, MmCommunicationDxe expects the MM comm buffer
to either be not added by the platform or added and allocated
by the platform. However, not all platforms follow this pattern.

This commit makes the handling more generic by checking to see
if a GCD descriptor exists that covers this range. If it does,
the capabilities are updated as needed. If only a partial desc
exists for this range, the driver will fail as that is a platform
misconfiguration.

If the descriptor does not exist, the driver will add the buffer.

Then, for all successful cases, the attributes are updated on the
buffer to what the driver expects them to be.

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
(cherry picked from commit 4f80e9c52841589144fd12e6f4d9d46638bce8d1)
…for VA_LIST

MSVC AARCH64 and CLANGPDB AARCH64 currently use the MS ABI for
variadics in edk2. However, this breaks the AAPCS64 ABI and
interopability with GCC/CLANGDWARF built binaries.

Because the architecture defines the single ABI, MSVC AARCH64 has
little usage, and CLANGPDB AARCH64 is new to edk2, coerce these
toolchains to use the AAPCS64 ABI instead of the MS ABI. This
allows interopability between all supported AARCH64 toolchains
in edk2 for variadics.

Note that variadic functions themselves are unaffected by
this change, e.g. functions that take ... as the last
parameter. This affects the VA_LIST structure and the
associated helpers to parse it.

Continuous-integration-options: PatchCheck.ignore-multi-package

Signed-off-by: Oliver Smith-Denny <osde@microsoft.com>
(cherry picked from commit 5608ef608767a401926881a352e1bf88ade56379)
@mu-automation
Copy link
Copy Markdown
Contributor

mu-automation Bot commented May 29, 2026

✅ QEMU Validation Passed

Source Dependencies

Repository Commit
mu_basecore 02af4a9
mu_tiano_platforms de8be29

Results

Platform Target Build Boot Overall Boot Time Build Logs Boot Logs
Q35 DEBUG ✅ success ✅ success 0m 17s Build Logs Boot Logs
SBSA DEBUG ✅ success ✅ success 0m 28s Build Logs Boot Logs

Workflow run: https://github.com/microsoft/mu_basecore/actions/runs/26644389778

This comment was automatically generated by the Mu QEMU PR Validation workflow.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented May 29, 2026

Codecov Report

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

Additional details and impacted files
@@                Coverage Diff                @@
##             release/202511    #1810   +/-   ##
=================================================
  Coverage                  ?    2.21%           
=================================================
  Files                     ?     1634           
  Lines                     ?   420137           
  Branches                  ?     4949           
=================================================
  Hits                      ?     9308           
  Misses                    ?   410754           
  Partials                  ?       75           
Flag Coverage Δ
FmpDevicePkg 9.53% <ø> (?)
MdeModulePkg 1.58% <ø> (?)
MdePkg 5.44% <ø> (?)
NetworkPkg 0.55% <ø> (?)
PolicyServicePkg 30.42% <ø> (?)
SecurityPkg 1.59% <ø> (?)
UefiCpuPkg 4.78% <ø> (?)
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.

@os-d os-d merged commit 08e374c into microsoft:release/202511 May 29, 2026
96 checks passed
@os-d os-d deleted the cp_stuff branch May 29, 2026 15:42
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.

5 participants