Skip to content

Commit

Permalink
OvmfPkg/SmmCpuPlatformHookLibQemu: Define IsCpuSyncAlwaysNeeded
Browse files Browse the repository at this point in the history
This patch is to implement default IsCpuSyncAlwaysNeeded definition
for SmmCpuPlatformHookLibQemu. 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 <[email protected]>
  • Loading branch information
sweeaun authored and mergify[bot] committed Jan 10, 2025
1 parent a8363bc commit c0533b7
Showing 1 changed file with 23 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,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;
}

0 comments on commit c0533b7

Please sign in to comment.