2020-11-30 21:28:19 +01:00
|
|
|
/** @file
|
2020-12-16 00:20:56 +01:00
|
|
|
Confidential Computing Secret configuration table constructor
|
2020-11-30 21:28:19 +01:00
|
|
|
|
|
|
|
Copyright (C) 2020 James Bottomley, IBM Corporation.
|
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
|
|
**/
|
|
|
|
#include <PiDxe.h>
|
|
|
|
#include <Library/UefiBootServicesTableLib.h>
|
2020-12-16 02:41:46 +01:00
|
|
|
#include <Guid/ConfidentialComputingSecret.h>
|
2020-11-30 21:28:19 +01:00
|
|
|
|
2020-12-16 02:41:46 +01:00
|
|
|
STATIC CONFIDENTIAL_COMPUTING_SECRET_LOCATION mSecretDxeTable = {
|
2020-11-30 21:28:19 +01:00
|
|
|
FixedPcdGet32 (PcdSevLaunchSecretBase),
|
|
|
|
FixedPcdGet32 (PcdSevLaunchSecretSize),
|
|
|
|
};
|
|
|
|
|
|
|
|
EFI_STATUS
|
|
|
|
EFIAPI
|
|
|
|
InitializeSecretDxe(
|
|
|
|
IN EFI_HANDLE ImageHandle,
|
|
|
|
IN EFI_SYSTEM_TABLE *SystemTable
|
|
|
|
)
|
|
|
|
{
|
|
|
|
return gBS->InstallConfigurationTable (
|
2020-12-16 02:41:46 +01:00
|
|
|
&gConfidentialComputingSecretGuid,
|
2020-11-30 21:28:19 +01:00
|
|
|
&mSecretDxeTable
|
|
|
|
);
|
|
|
|
}
|