SEC checks in IsSevGuest if the PCD defined WorkAreaHeader size
matches the size of the WorkAreaHeader struct definition. Set a
default value for the PCD to avoid unnecessary DSC/FDF file
changes in all OVMF DSC/FDF files.
Signed-off-by: Corvin Köhne <c.koehne@beckhoff.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
// to the structure need to be kept in sync with the\r
// PcdOvmfConfidentialComputingWorkAreaHeader.\r
//\r
+// PcdOvmfConfidentialComputingWorkAreaHeader ==\r
+// sizeof (CONFIDENTIAL_COMPUTING_WORK_AREA_HEADER)\r
+// PcdOvmfConfidentialComputingWorkAreaHeader defined in:\r
+// OvmfPkg/OvmfPkg.dec\r
+// OvmfPkg/OvmfPkgDefines.fdf.inc\r
typedef struct _CONFIDENTIAL_COMPUTING_WORK_AREA_HEADER {\r
UINT8 GuestType;\r
UINT8 Reserved1[3];\r
# The size of this header is used early boot, and is provided through\r
# a fixed PCD. It need to be kept in sync with any changes to the\r
# header definition.\r
- gUefiOvmfPkgTokenSpaceGuid.PcdOvmfConfidentialComputingWorkAreaHeader|0|UINT32|0x51\r
+ gUefiOvmfPkgTokenSpaceGuid.PcdOvmfConfidentialComputingWorkAreaHeader|4|UINT32|0x51\r
\r
\r
[PcdsDynamic, PcdsDynamicEx]\r