Skip to content

Commit c0533b7

Browse files
sweeaunmergify[bot]
authored andcommitted
OvmfPkg/SmmCpuPlatformHookLibQemu: Define IsCpuSyncAlwaysNeeded
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]>
1 parent a8363bc commit c0533b7

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.c

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,26 @@ SmmCpuPlatformHookBeforeMmiHandler (
131131
{
132132
return EFI_UNSUPPORTED;
133133
}
134+
135+
/**
136+
This function determines whether the first CPU Synchronization should be executed unconditionally
137+
when a SMI occurs.
138+
139+
If the function returns true, it indicates that there is no need to check the system configuration
140+
and status, and the first CPU Synchronization should be executed unconditionally.
141+
142+
If the function returns false, it indicates that the first CPU Synchronization is not executed
143+
unconditionally, and the decision to synchronize should be based on the system configuration and status.
144+
145+
@retval TRUE The first CPU Synchronization is executed unconditionally.
146+
@retval FALSE The first CPU Synchronization is not executed unconditionally.
147+
148+
**/
149+
BOOLEAN
150+
EFIAPI
151+
IsCpuSyncAlwaysNeeded (
152+
VOID
153+
)
154+
{
155+
return FALSE;
156+
}

0 commit comments

Comments
 (0)