summaryrefslogtreecommitdiffstats
path: root/OvmfPkg
diff options
context:
space:
mode:
authorKhor Swee Aun <swee.aun.khor@intel.com>2024-12-18 21:34:45 -0800
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2025-01-10 07:45:26 +0000
commitc0533b7e227b2bb6369055043aa837253a61d86a (patch)
tree9aa6172db839aca70f87a473bf45f8906f980dbe /OvmfPkg
parenta8363bce367c872b5de52fa2257508fbcea20d84 (diff)
downloadedk2-c0533b7e227b2bb6369055043aa837253a61d86a.tar.gz
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 <swee.aun.khor@intel.com>
Diffstat (limited to 'OvmfPkg')
-rw-r--r--OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.c b/OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.c
index cab7d90bcc..f8560f36c2 100644
--- a/OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.c
+++ b/OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.c
@@ -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;
+}