The Confidential Computing blob defined here is intended to match the definition defined by linux guest kernel. Previously, both definitions relied on natural alignment, but that relies on both OVMF and kernel being compiled as 64-bit. While there aren't currently any plans to enable SNP support for 32-bit compilations, the kernel definition has since been updated to use explicit padding/reserved fields to avoid this dependency. Update OVMF to match that definition. While at it, also fix up the Reserved fields to match the numbering used in the kernel. No functional changes (for currently-supported environments, at least). Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com> Acked-by: Jiewen Yao <jiewen.yao@intel.com> Acked-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Michael Roth <michael.roth@amd.com>
36 lines
1020 B
C
36 lines
1020 B
C
/** @file
|
|
UEFI Configuration Table for exposing the SEV-SNP launch blob.
|
|
|
|
Copyright (c) 2021, Advanced Micro Devices Inc. All right reserved.
|
|
|
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
|
**/
|
|
|
|
#ifndef CONFIDENTIAL_COMPUTING_SEV_SNP_BLOB_H_
|
|
#define CONFIDENTIAL_COMPUTING_SEV_SNP_BLOB_H_
|
|
|
|
#include <Uefi/UefiBaseType.h>
|
|
|
|
#define CONFIDENTIAL_COMPUTING_SNP_BLOB_GUID \
|
|
{ 0x067b1f5f, \
|
|
0xcf26, \
|
|
0x44c5, \
|
|
{ 0x85, 0x54, 0x93, 0xd7, 0x77, 0x91, 0x2d, 0x42 }, \
|
|
}
|
|
|
|
typedef PACKED struct {
|
|
UINT32 Header;
|
|
UINT16 Version;
|
|
UINT16 Reserved;
|
|
UINT64 SecretsPhysicalAddress;
|
|
UINT32 SecretsSize;
|
|
UINT32 Reserved1;
|
|
UINT64 CpuidPhysicalAddress;
|
|
UINT32 CpuidLSize;
|
|
UINT32 Reserved2;
|
|
} CONFIDENTIAL_COMPUTING_SNP_BLOB_LOCATION;
|
|
|
|
extern EFI_GUID gConfidentialComputingSevSnpBlobGuid;
|
|
|
|
#endif
|