Skip to content

Commit

Permalink
OvmfPkg/Library: Impl SmmCpuPlatformHookBeforeMmiHandler func
Browse files Browse the repository at this point in the history
This patch is to add SmmCpuPlatformHookBeforeMmiHandler func
for OVMF.

Signed-off-by: Jiaxin Wu <[email protected]>
  • Loading branch information
jiaxinwu authored and mergify[bot] committed Oct 12, 2024
1 parent 7d4da67 commit e34460c
Showing 1 changed file with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
SMM CPU Platform Hook library instance for QEMU.
Copyright (c) 2020, Red Hat, Inc.
Copyright (c) 2006 - 2015, Intel Corporation. All rights reserved.<BR>
Copyright (c) 2006 - 2024, Intel Corporation. All rights reserved.<BR>
SPDX-License-Identifier: BSD-2-Clause-Patent
**/
Expand Down Expand Up @@ -113,3 +113,21 @@ GetPlatformPageTableAttribute (
{
return EFI_UNSUPPORTED;
}

/**
SMM CPU Platform Hook before executing MMI Handler.
This function can be used to perform the platform specific items before executing MMI Handler.
@retval EFI_SUCCESS The smm cpu platform hook before executing MMI Handler is executed successfully.
@retval EFI_UNSUPPORTED The smm cpu platform hook before executing MMI Handler is unsupported.
**/
EFI_STATUS
EFIAPI
SmmCpuPlatformHookBeforeMmiHandler (
VOID
)
{
return EFI_UNSUPPORTED;
}

0 comments on commit e34460c

Please sign in to comment.