From 96201ae7bf97c3a2c0ef386110bb93d25e9af1ba Mon Sep 17 00:00:00 2001 From: James Bottomley Date: Tue, 15 Dec 2020 17:41:46 -0800 Subject: OvmfPkg/AmdSev/SecretDxe: make secret location naming generic It is anticipated that this part of the code will work for both Intel TDX and AMD SEV, so remove the SEV specific naming and change to ConfidentialComputing as a more architecture neutral prefix. Apart from the symbol rename, there are no code changes. Signed-off-by: James Bottomley Message-Id: <20201216014146.2229-3-jejb@linux.ibm.com> Reviewed-by: Jiewen Yao Reviewed-by: Laszlo Ersek --- OvmfPkg/Include/Guid/ConfidentialComputingSecret.h | 28 ++++++++++++++++++++++ OvmfPkg/Include/Guid/SevLaunchSecret.h | 28 ---------------------- 2 files changed, 28 insertions(+), 28 deletions(-) create mode 100644 OvmfPkg/Include/Guid/ConfidentialComputingSecret.h delete mode 100644 OvmfPkg/Include/Guid/SevLaunchSecret.h (limited to 'OvmfPkg/Include') diff --git a/OvmfPkg/Include/Guid/ConfidentialComputingSecret.h b/OvmfPkg/Include/Guid/ConfidentialComputingSecret.h new file mode 100644 index 0000000000..7026fc5b08 --- /dev/null +++ b/OvmfPkg/Include/Guid/ConfidentialComputingSecret.h @@ -0,0 +1,28 @@ + /** @file + UEFI Configuration Table for exposing the SEV Launch Secret location to UEFI + applications (boot loaders). + + Copyright (C) 2020 James Bottomley, IBM Corporation. + SPDX-License-Identifier: BSD-2-Clause-Patent + **/ + +#ifndef CONFIDENTIAL_COMPUTING_SECRET_H_ +#define CONFIDENTIAL_COMPUTING_SECRET_H_ + +#include + +#define CONFIDENTIAL_COMPUTING_SECRET_GUID \ + { 0xadf956ad, \ + 0xe98c, \ + 0x484c, \ + { 0xae, 0x11, 0xb5, 0x1c, 0x7d, 0x33, 0x64, 0x47 }, \ + } + +typedef struct { + UINT64 Base; + UINT64 Size; +} CONFIDENTIAL_COMPUTING_SECRET_LOCATION; + +extern EFI_GUID gConfidentialComputingSecretGuid; + +#endif // SEV_LAUNCH_SECRET_H_ diff --git a/OvmfPkg/Include/Guid/SevLaunchSecret.h b/OvmfPkg/Include/Guid/SevLaunchSecret.h deleted file mode 100644 index dfd8964665..0000000000 --- a/OvmfPkg/Include/Guid/SevLaunchSecret.h +++ /dev/null @@ -1,28 +0,0 @@ - /** @file - UEFI Configuration Table for exposing the SEV Launch Secret location to UEFI - applications (boot loaders). - - Copyright (C) 2020 James Bottomley, IBM Corporation. - SPDX-License-Identifier: BSD-2-Clause-Patent - **/ - -#ifndef SEV_LAUNCH_SECRET_H_ -#define SEV_LAUNCH_SECRET_H_ - -#include - -#define SEV_LAUNCH_SECRET_GUID \ - { 0xadf956ad, \ - 0xe98c, \ - 0x484c, \ - { 0xae, 0x11, 0xb5, 0x1c, 0x7d, 0x33, 0x64, 0x47 }, \ - } - -typedef struct { - UINT64 Base; - UINT64 Size; -} SEV_LAUNCH_SECRET_LOCATION; - -extern EFI_GUID gSevLaunchSecretGuid; - -#endif // SEV_LAUNCH_SECRET_H_ -- cgit v1.2.3