tianocore / edk2

EDK II
https://github.com/tianocore/tianocore.github.io/wiki/EDK-II
Other
4.52k stars 2.44k forks source link

Smm profile func fix #5911

Closed jiaxinwu closed 1 month ago

jiaxinwu commented 1 month ago

SMM Profile Functionality Fix

This patch belongs to the bug fix for SMM Profile Functionality.

The first patch is to enable the single-step debugging mode by setting the Trap Flag only after SmmProfile feature starts. The second patch is to ensure that a Page Directory Entry (PDE) exists prior to its usage. The third patch is to remove the assert check. The page table entry created will be the platform-specified PageSize granularity. The fourth patch is to iterate page table to find proper entry.

How This Was Tested

Enable the SMM Profile feature on QSP. 1) Pass the boot. 2) Access the non-smram mem to check whether memory can be recorded by SMM profile.