Skip to content

Commit

Permalink
fixup! SecurityPkg/Tpm2DeviceLibDTpm: Implement SVSM vTPM support fun…
Browse files Browse the repository at this point in the history
…ctions
  • Loading branch information
osteffenrh committed Dec 11, 2024
1 parent 37e7c00 commit 1706e02
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 7 deletions.
10 changes: 7 additions & 3 deletions SecurityPkg/Library/Tpm2DeviceLibDTpm/Tpm2DeviceLibDTpmSvsm.inf
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,29 @@
# used for every TPM 2.0 command. Choosing this library means platform uses and
# only uses TPM 2.0 DTPM device.
#
# This version of the library supports SVSM based vTPMs for confidential virtual machines
# under AMD-SEV SNP.
#
# Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
# Copyright (c) Microsoft Corporation.
# Copyright (c) 2024 Red Hat
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##

[Defines]
INF_VERSION = 0x00010005
BASE_NAME = Tpm2DeviceLibDTpm
BASE_NAME = Tpm2DeviceLibDTpmSvsm
MODULE_UNI_FILE = Tpm2DeviceLibDTpm.uni
FILE_GUID = E54A3327-A345-4068-8842-70AC0D519855
FILE_GUID = EE79D4E4-8538-4FE6-A7EF-4095CB6B38E7
MODULE_TYPE = BASE
VERSION_STRING = 1.0
LIBRARY_CLASS = Tpm2DeviceLib|PEIM DXE_DRIVER DXE_RUNTIME_DRIVER DXE_SMM_DRIVER UEFI_APPLICATION UEFI_DRIVER
CONSTRUCTOR = Tpm2DeviceLibConstructor
#
# The following information is for reference only and not required by the build tools.
#
# VALID_ARCHITECTURES = IA32 X64
# VALID_ARCHITECTURES = X64
#

[Sources]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,21 @@
# engine, based on platform setting. It supports both TIS (TPM Interface Specification)
# and PTP (Platform TPM Profile) functions.
#
# This version of the library supports SVSM based vTPMs for confidential virtual machines
# under AMD-SEV SNP.
#
# Copyright (c) 2013 - 2018, Intel Corporation. All rights reserved.<BR>
# Copyright (c) Microsoft Corporation
# Copyright (c) 2024 Red Hat
# SPDX-License-Identifier: BSD-2-Clause-Patent
#
##

[Defines]
INF_VERSION = 0x00010005
BASE_NAME = Tpm2InstanceLibDTpm
BASE_NAME = Tpm2InstanceLibDTpmSvsm
MODULE_UNI_FILE = Tpm2InstanceLibDTpm.uni
FILE_GUID = 286BF25A-C2C3-408c-B3B4-25E6758B7317
FILE_GUID = C7777207-A8DF-47E4-AA3C-E8BF74E7F233
MODULE_TYPE = BASE
VERSION_STRING = 1.0
LIBRARY_CLASS = NULL
Expand All @@ -24,7 +28,7 @@
#
# The following information is for reference only and not required by the build tools.
#
# VALID_ARCHITECTURES = IA32 X64
# VALID_ARCHITECTURES = X64
#

[Sources]
Expand Down Expand Up @@ -52,4 +56,4 @@
[Pcd]
gEfiSecurityPkgTokenSpaceGuid.PcdTpmBaseAddress ## CONSUMES
gEfiSecurityPkgTokenSpaceGuid.PcdActiveTpmInterfaceType ## PRODUCES
gEfiSecurityPkgTokenSpaceGuid.PcdCRBIdleByPass ## PRODUCES
gEfiSecurityPkgTokenSpaceGuid.PcdCRBIdleByPass ## PRODUCES

0 comments on commit 1706e02

Please sign in to comment.