Add SmmCpuPlatformHookLib IsCpuSyncAlwaysNeeded interface

This patch adds the IsCpuSyncAlwaysNeeded interface to the SmmCpuPlatformHookLib.
This interface will determine whether the first CPU Synchronization should be
executed unconditionally when a SMI occurs.

If the function returns true, it indicates that there is no need to check the
system configuration and status, and the first CPU Synchronization should be
executed unconditionally.

If the function returns false, it indicates that the first CPU Synchronization is
not executed unconditionally, and the decision to synchronize should be based on
the system configuration and status.

Signed-off-by: Khor Swee Aun <swee.aun.khor@intel.com>
This commit is contained in:
Khor Swee Aun 2024-12-16 16:32:52 -08:00 committed by mergify[bot]
parent 21cbba1bb3
commit a8363bce36
2 changed files with 43 additions and 0 deletions

View File

@ -115,4 +115,24 @@ SmmCpuPlatformHookBeforeMmiHandler (
VOID
);
/**
This function determines whether the first CPU Synchronization should be executed unconditionally
when a SMI occurs.
If the function returns true, it indicates that there is no need to check the system configuration
and status, and the first CPU Synchronization should be executed unconditionally.
If the function returns false, it indicates that the first CPU Synchronization is not executed
unconditionally, and the decision to synchronize should be based on the system configuration and status.
@retval TRUE The first CPU Synchronization is executed unconditionally.
@retval FALSE The first CPU Synchronization is not executed unconditionally.
**/
BOOLEAN
EFIAPI
IsCpuSyncAlwaysNeeded (
VOID
);
#endif

View File

@ -118,3 +118,26 @@ SmmCpuPlatformHookBeforeMmiHandler (
{
return EFI_UNSUPPORTED;
}
/**
This function determines whether the first CPU Synchronization should be executed unconditionally
when a SMI occurs.
If the function returns true, it indicates that there is no need to check the system configuration
and status, and the first CPU Synchronization should be executed unconditionally.
If the function returns false, it indicates that the first CPU Synchronization is not executed
unconditionally, and the decision to synchronize should be based on the system configuration and status.
@retval TRUE The first CPU Synchronization is executed unconditionally.
@retval FALSE The first CPU Synchronization is not executed unconditionally.
**/
BOOLEAN
EFIAPI
IsCpuSyncAlwaysNeeded (
VOID
)
{
return FALSE;
}