2017-07-06 15:21:12 +02:00
|
|
|
## @file
|
|
|
|
# Library provides the helper functions for SEV guest
|
|
|
|
#
|
2021-01-07 19:48:16 +01:00
|
|
|
# Copyright (c) 2020 Advanced Micro Devices. All rights reserved.<BR>
|
2017-07-06 15:21:12 +02:00
|
|
|
#
|
2019-04-04 01:06:33 +02:00
|
|
|
# SPDX-License-Identifier: BSD-2-Clause-Patent
|
2017-07-06 15:21:12 +02:00
|
|
|
#
|
|
|
|
#
|
|
|
|
##
|
|
|
|
|
|
|
|
[Defines]
|
|
|
|
INF_VERSION = 1.25
|
2021-01-07 19:48:16 +01:00
|
|
|
BASE_NAME = PeiMemEncryptSevLib
|
|
|
|
FILE_GUID = 15d9a694-3d2a-4184-9672-ba55c3070e07
|
2017-07-06 15:21:12 +02:00
|
|
|
MODULE_TYPE = BASE
|
|
|
|
VERSION_STRING = 1.0
|
2021-01-07 19:48:16 +01:00
|
|
|
LIBRARY_CLASS = MemEncryptSevLib|PEIM
|
2017-07-06 15:21:12 +02:00
|
|
|
|
|
|
|
#
|
2018-03-01 14:32:23 +01:00
|
|
|
# The following information is for reference only and not required by the build
|
|
|
|
# tools.
|
2017-07-06 15:21:12 +02:00
|
|
|
#
|
|
|
|
# VALID_ARCHITECTURES = IA32 X64
|
|
|
|
#
|
|
|
|
|
|
|
|
[Packages]
|
|
|
|
MdeModulePkg/MdeModulePkg.dec
|
2018-03-01 15:02:11 +01:00
|
|
|
MdePkg/MdePkg.dec
|
2017-07-06 15:21:12 +02:00
|
|
|
OvmfPkg/OvmfPkg.dec
|
|
|
|
UefiCpuPkg/UefiCpuPkg.dec
|
|
|
|
|
2021-01-07 19:48:16 +01:00
|
|
|
[Sources]
|
2021-01-07 19:48:21 +01:00
|
|
|
PeiDxeMemEncryptSevLibInternal.c
|
2021-01-07 19:48:16 +01:00
|
|
|
PeiMemEncryptSevLibInternal.c
|
|
|
|
|
|
|
|
[Sources.X64]
|
2017-07-06 15:21:12 +02:00
|
|
|
X64/MemEncryptSevLib.c
|
2021-01-07 19:48:21 +01:00
|
|
|
X64/PeiDxeVirtualMemory.c
|
2021-12-09 04:27:42 +01:00
|
|
|
X64/PeiSnpSystemRamValidate.c
|
|
|
|
X64/SnpPageStateChangeInternal.c
|
2021-01-07 19:48:22 +01:00
|
|
|
X64/VirtualMemory.c
|
2018-03-10 20:20:14 +01:00
|
|
|
X64/VirtualMemory.h
|
2017-07-06 15:21:12 +02:00
|
|
|
|
|
|
|
[Sources.IA32]
|
|
|
|
Ia32/MemEncryptSevLib.c
|
|
|
|
|
|
|
|
[LibraryClasses]
|
|
|
|
BaseLib
|
|
|
|
CacheMaintenanceLib
|
2018-03-01 15:02:11 +01:00
|
|
|
CpuLib
|
2017-07-06 15:21:12 +02:00
|
|
|
DebugLib
|
|
|
|
MemoryAllocationLib
|
2018-03-01 17:31:44 +01:00
|
|
|
PcdLib
|
2021-12-09 04:27:42 +01:00
|
|
|
VmgExitLib
|
2018-03-01 17:31:44 +01:00
|
|
|
|
|
|
|
[FeaturePcd]
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdSmmSmramRequire
|
2021-01-07 19:48:16 +01:00
|
|
|
|
|
|
|
[FixedPcd]
|
|
|
|
gUefiCpuPkgTokenSpaceGuid.PcdSevEsWorkAreaBase
|
2022-02-21 15:59:14 +01:00
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfWorkAreaBase
|
2021-12-09 04:27:44 +01:00
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfPeiMemFvBase
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecPageTablesBase
|
2021-12-09 04:27:46 +01:00
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecValidatedEnd
|
|
|
|
gUefiOvmfPkgTokenSpaceGuid.PcdOvmfSecValidatedStart
|