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) 2017 - 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 = DxeMemEncryptSevLib
|
2017-07-06 15:21:12 +02:00
|
|
|
FILE_GUID = c1594631-3888-4be4-949f-9c630dbc842b
|
|
|
|
MODULE_TYPE = BASE
|
|
|
|
VERSION_STRING = 1.0
|
2021-01-07 19:48:25 +01:00
|
|
|
LIBRARY_CLASS = MemEncryptSevLib|DXE_CORE DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER UEFI_DRIVER
|
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]
|
|
|
|
DxeMemEncryptSevLibInternal.c
|
2021-01-07 19:48:21 +01:00
|
|
|
PeiDxeMemEncryptSevLibInternal.c
|
2021-01-07 19:48:16 +01:00
|
|
|
|
|
|
|
[Sources.X64]
|
2021-12-09 04:27:42 +01:00
|
|
|
X64/DxeSnpSystemRamValidate.c
|
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/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
|
|
|
|
|
|
|
[Pcd]
|
|
|
|
gEfiMdeModulePkgTokenSpaceGuid.PcdPteMemoryEncryptionAddressOrMask
|