Branch: refs/heads/master
Home: https://github.com/tianocore/edk2
Commit: b19f1311d668fbca3ddb72e1244608babd7791c5
https://github.com/tianocore/edk2/commit/b19f1311d668fbca3ddb72e1244608babd7791c5
Author: Dun Tan <[email protected]>
Date: 2024-11-05 (Tue, 05 Nov 2024)
Changed paths:
M StandaloneMmPkg/Core/StandaloneMmCore.c
Log Message:
-----------
StandaloneMmPkg/Core: Remove unneeded check
Remove unneeded check MmIsBufferOutsideMmValid() when
StandaloneMmCore checks if the BS data memory described
by a memory allocation HOB needs to be migrated to Mmram.
Currently, the API MmIsBufferOutsideMmValid() return TRUE
when input memory range belongs to non-Mmram memory. Now
the API will be changed in following 5 commits to return
TRUE when a memory range belongs to non-Mmram memroy and
the memory is inside a range described by resource HOB.
This may cause PF when some SMI handler access the memory
from a memory allocation HOB that is not migrated.
To solve this issue, we can directly remove the check
MmIsBufferOutsideMmValid() and always migrate the BS data
memory described by a memory allocation HOB to Mmram.
Signed-off-by: Dun Tan <[email protected]>
Commit: 025cec183deaaef4942f37958b9cc09e69112ef0
https://github.com/tianocore/edk2/commit/025cec183deaaef4942f37958b9cc09e69112ef0
Author: Dun Tan <[email protected]>
Date: 2024-11-05 (Tue, 05 Nov 2024)
Changed paths:
M StandaloneMmPkg/Library/StandaloneMmMemLib/ArmStandaloneMmMemLibInternal.c
M StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.c
M StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf
A StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLibInternal.h
M StandaloneMmPkg/Library/StandaloneMmMemLib/X86StandaloneMmMemLibInternal.c
Log Message:
-----------
StandaloneMmPkg/MemLib: Add an internal header file
Add a internal header file for StandaloneMmMemLib.
Move some common reference and declaration into
StandaloneMmMemLibInternal.h.
Signed-off-by: Dun Tan <[email protected]>
Commit: d24bb10b1d9a5b2458efe54d48c81583ce8499bd
https://github.com/tianocore/edk2/commit/d24bb10b1d9a5b2458efe54d48c81583ce8499bd
Author: Dun Tan <[email protected]>
Date: 2024-11-05 (Tue, 05 Nov 2024)
Changed paths:
M StandaloneMmPkg/Library/StandaloneMmMemLib/ArmStandaloneMmMemLibInternal.c
M StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.c
M StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLibInternal.h
M StandaloneMmPkg/Library/StandaloneMmMemLib/X86StandaloneMmMemLibInternal.c
Log Message:
-----------
StandaloneMmPkg/MemLib: Check if the non-MMRAM buffer is valid
Check if the non-MMRAM buffer is inside valid non-mmram
range in API MmIsBufferOutsideMmValid of StandaloneMmMemLib.
Previously, the API only checks if the input buffer is
overlapped with MMRAM range. Currently, in the new standalone
MM infrastructure, we limit the non-MMRAM access to the ranges
reported by the resource HOB. To meet the new design, in this
API, we cache all the memory ranges reported by the resource
HOB and check if the input buffer is inside valid non-MMRAM
ranges reported by the resource HOB.
Signed-off-by: Dun Tan <[email protected]>
Commit: 3adb5071751d634ce4116fc566f8a131ecc080af
https://github.com/tianocore/edk2/commit/3adb5071751d634ce4116fc566f8a131ecc080af
Author: Dun Tan <[email protected]>
Date: 2024-11-05 (Tue, 05 Nov 2024)
Changed paths:
M StandaloneMmPkg/Core/StandaloneMmCore.c
Log Message:
-----------
StandaloneMmPkg/Core: add a new InitializeMmHobList()
Separate a function called InitializeMmHobList() to gather
all the operations related to initializing HOB. It doesn't
change any code logic.
Signed-off-by: Dun Tan <[email protected]>
Commit: da8fd23dbba7088627e4420975088148076ad421
https://github.com/tianocore/edk2/commit/da8fd23dbba7088627e4420975088148076ad421
Author: Dun Tan <[email protected]>
Date: 2024-11-05 (Tue, 05 Nov 2024)
Changed paths:
M StandaloneMmPkg/Core/StandaloneMmCore.c
Log Message:
-----------
StandaloneMmPkg/Core: Check Resource HOB and Mmram ranges
Check if the all the resource HOB in the input HOB list of
MmCore entry only covers non-Mmram ranges. The Resource HOB
is to describe the accessible non-Mmram range. All Resource
HOB should not overlap with any Mmram range.
Signed-off-by: Dun Tan <[email protected]>
Commit: 836942fbadb629050b866a8052e6af755bcdf623
https://github.com/tianocore/edk2/commit/836942fbadb629050b866a8052e6af755bcdf623
Author: Dun Tan <[email protected]>
Date: 2024-11-05 (Tue, 05 Nov 2024)
Changed paths:
M StandaloneMmPkg/Library/StandaloneMmMemLib/ArmStandaloneMmMemLibInternal.c
M StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.c
M StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLib.inf
M StandaloneMmPkg/Library/StandaloneMmMemLib/StandaloneMmMemLibInternal.h
M StandaloneMmPkg/Library/StandaloneMmMemLib/X86StandaloneMmMemLibInternal.c
Log Message:
-----------
StandaloneMmPkg/MemLib: remove unnecessary check
Remove unnecessary check in API MmIsBufferOutsideMmValid of
StandaloneMmMemLib.
The API is used to check if a input buffer is outside MMRAM and
inside a valid non-MMRAM range. Previously, the API only checks
if the input buffer is
overlapped with MMRAM range. In the last
commit, we add logic to check if the input buffer is inside valid
non-MMRAM
ranges reported by the resource HOB. Since the resource
HOB only covers valid non-MMRAM ranges, we doesn't need to check
if the input buffer is inside the MMRAM anymore.
Signed-off-by: Dun Tan <[email protected]>
Compare: https://github.com/tianocore/edk2/compare/734406184fa2...836942fbadb6
To unsubscribe from these emails, change your notification settings at
https://github.com/tianocore/edk2/settings/notifications
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits