-
Notifications
You must be signed in to change notification settings - Fork 160
[Cherry-Pick] UefiCpuPkg: Enable MM_CORE_STANDALONE for IntelMmSaveStateLib, SmmCpuPlatformHookLibNull #1312
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
[Cherry-Pick] UefiCpuPkg: Enable MM_CORE_STANDALONE for IntelMmSaveStateLib, SmmCpuPlatformHookLibNull #1312
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev/202502 #1312 +/- ##
============================================
Coverage ? 4.86%
============================================
Files ? 140
Lines ? 26732
Branches ? 527
============================================
Hits ? 1301
Misses ? 25407
Partials ? 24
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
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.
Instead of going in as reverts of edk2 commits should this go in as MU_CHANGEs?
Also, @apop5, are you going to make the upstream change to the allowed Standalone MM types? If so, I'd rather just make that be the MU_CHANGE since it is closer to what upstream will have. |
This revert is happening because SupvMM is attempting to consume these libraries. Alternatives are: I don't think these changes should be upstreamed to edk2, because this is happening because SupvMM is attempting to consume them. |
1b6dd7c
to
3e41da1
Compare
I think that's why it should be supported. These are in |
I'll get a PR up for edk2 |
PR to edk2 is up |
…PlatformHookLibNull. IntelMmSaveStateLib and SmmCpuPlatformHookLibNull were limited to DXE_SMM_DRIVER MM_STANDALONE, where as previously not supported module types were listed. Add MM_CORE_STANDALONE as a supported module type for these libraries. Signed-off-by: Aaron Pop <aaronpop@microsoft.com>
3e41da1
to
ef2cf1b
Compare
Description
MmSupervisorPkg's MmSupervisorCore.inf (MM_CORE_STANDALONE) uses Both SmmCpuPlatformHookLib and MmSaveStateLib.
Edk2 limited the scope of the libraries to not support MM_CORE_STANDALONE, and this works okay for the Edk2's StandaloneMmPkg, but it breaks the expectations of the MmSupervisorPkg's Core.
Add MM_CORE_STANDALONE as an allowed Module Type for these libraries.
How This Was Tested
Building on silicon vendor codebase which consumed MmSupervisorCore.
Integration Instructions
No integration required.