Files
EDK2-fork/OvmfPkg/SmmControl2Dxe/MmControlPei.inf
Kun Qin 8ac270e812 OvmfPkg: MmControlPei: Introduce MM control PPI to OVMF
This change adds a PEIM that produces gEfiPeiMmControlPpiGuid to be used
in PEI phase, i.e. boot strap MM foundation.

This flow is largely in assemblence of MM control DXE driver and used the
`SmiFeatures.*` files from the DXE drivers as the common resources.

Signed-off-by: Kun Qin <kun.qin@microsoft.com>
2025-06-19 06:17:18 +00:00

71 lines
1.8 KiB
INI

## @file
# A PEIM providing synchronous SMI activations via the
# EFI_PEI_MM_CONTROL_PPI.
#
# We expect the PEI phase to have covered the following:
# - ensure that the underlying QEMU machine type be Q35
# (responsible: QemuQ35Pkg/SmmAccess/SmmAccessPei.inf)
# - ensure that the ACPI PM IO space be configured
# (responsible: QemuQ35Pkg/PlatformPei/PlatformPei.inf)
#
# Our own entry point is responsible for confirming the SMI feature and for
# configuring it.
#
# Copyright (C) 2013, 2015, Red Hat, Inc.
# Copyright (c) Microsoft Corporation.
#
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##
[Defines]
INF_VERSION = 0x00010005
BASE_NAME = MmControlPei
FILE_GUID = A0DBE438-701C-44AF-AB4A-25545B86B565
MODULE_TYPE = PEIM
VERSION_STRING = 1.0
ENTRY_POINT = MmControlPeiEntryPoint
#
# The following information is for reference only and not required by the build tools.
#
# VALID_ARCHITECTURES = IA32 X64
#
[Sources]
SmiFeatures.h
SmiFeatures.c
MmControlPei.c
[Packages]
MdePkg/MdePkg.dec
OvmfPkg/OvmfPkg.dec
UefiCpuPkg/UefiCpuPkg.dec
[LibraryClasses]
BaseLib
DebugLib
IoLib
MemEncryptSevLib
MemoryAllocationLib
PcdLib
PciLib
QemuFwCfgLib
QemuFwCfgS3Lib
PeimEntryPoint
[Ppis]
gEfiPeiMmControlPpiGuid ## PRODUCES
[Pcd]
gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout ## SOMETIMES_PRODUCES
gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmApSyncTimeout2 ## SOMETIMES_PRODUCES
gUefiCpuPkgTokenSpaceGuid.PcdCpuSmmSyncMode ## SOMETIMES_PRODUCES
[FeaturePcd]
gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire
gUefiOvmfPkgTokenSpaceGuid.PcdStandaloneMmEnable
[Depex]
TRUE