Skip to content

Commit e34460c

Browse files
jiaxinwumergify[bot]
authored andcommitted
OvmfPkg/Library: Impl SmmCpuPlatformHookBeforeMmiHandler func
This patch is to add SmmCpuPlatformHookBeforeMmiHandler func for OVMF. Signed-off-by: Jiaxin Wu <[email protected]>
1 parent 7d4da67 commit e34460c

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

OvmfPkg/Library/SmmCpuPlatformHookLibQemu/SmmCpuPlatformHookLibQemu.c

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
SMM CPU Platform Hook library instance for QEMU.
33
44
Copyright (c) 2020, Red Hat, Inc.
5-
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
5+
Copyright (c) 2006 - 2024, Intel Corporation. All rights reserved.<BR>
66
SPDX-License-Identifier: BSD-2-Clause-Patent
77
88
**/
@@ -113,3 +113,21 @@ GetPlatformPageTableAttribute (
113113
{
114114
return EFI_UNSUPPORTED;
115115
}
116+
117+
/**
118+
SMM CPU Platform Hook before executing MMI Handler.
119+
120+
This function can be used to perform the platform specific items before executing MMI Handler.
121+
122+
@retval EFI_SUCCESS The smm cpu platform hook before executing MMI Handler is executed successfully.
123+
@retval EFI_UNSUPPORTED The smm cpu platform hook before executing MMI Handler is unsupported.
124+
125+
**/
126+
EFI_STATUS
127+
EFIAPI
128+
SmmCpuPlatformHookBeforeMmiHandler (
129+
VOID
130+
)
131+
{
132+
return EFI_UNSUPPORTED;
133+
}

0 commit comments

Comments
 (0)