Skip to content
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

Add SmmCpuPlatformHookLib IsLmceStatusCheckNeeded interface #6557

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

sweeaun
Copy link

@sweeaun sweeaun commented Dec 18, 2024

Description

Determines if the LMCE status check is needed.

This patch is to add IsLmceStatusCheckNeeded interface in SmmCpuPlatformHookLib. This function checks whether the LMCE status check is required.

By default, it returns TRUE, indicating that the LMCE status check should be performed. However, if the check should be skipped for any reason, it can return FALSE.

How This Was Tested

No test except compile the code successfully as new interface not being used by other code now. Test can be done once it called by other code later.

@sweeaun sweeaun changed the title UefiCpuPkg/SmmCpuPlatformHookLibNull: Add new interface Add SmmCpuPlatformHookLib IsPlatformLmceStatusCheck interface Dec 18, 2024
@jiaxinwu
Copy link
Member

please also refine the commit message according the new name: IsLmceStatusCheckNeeded

@jiaxinwu
Copy link
Member

use 2 commits in 1 PR for those 2 different packages changes

@sweeaun sweeaun changed the title Add SmmCpuPlatformHookLib IsPlatformLmceStatusCheck interface Add SmmCpuPlatformHookLib IsLmceStatusCheckNeeded interface Dec 19, 2024
@sweeaun sweeaun requested a review from jiaxinwu December 19, 2024 06:46
This patch is to add IsLmceStatusCheckNeeded interface in
SmmCpuPlatformHookLib. This new interface can used to check
whether the LMCE status check is required.

By default, it returns TRUE, indicating that the LMCE status check
should be performed. However, if the check should be skipped for
any reason, it can return FALSE.

Signed-off-by: Khor Swee Aun <[email protected]>
This patch is to implement IsLmceStatusCheckNeeded definition for
SmmCpuPlatformHookLibQemu.

By default, it returns TRUE, indicating that the LMCE status check
should be performed.

Signed-off-by: Khor Swee Aun <[email protected]>
@kraxel
Copy link
Member

kraxel commented Jan 2, 2025

LMCE expands to "Local Machine Check Exception" I assume?

The commit messages describes what is changed, but not why this change is needed. Can you please add that information?

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