From f9afe530de0be52bead99dfb9f8d2c65281d38a6 Mon Sep 17 00:00:00 2001 From: Jiaqi Gao Date: Tue, 20 Aug 2024 04:56:23 -0400 Subject: [PATCH] OvmfPkg/WorkArea.h: add `MeasurementType` for TDX SEC workarea Introduce `MeasurementType` to indicate whether TDX measurement of vTPM measurement is used. Signed-off-by: Jiaqi Gao --- OvmfPkg/Include/WorkArea.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/OvmfPkg/Include/WorkArea.h b/OvmfPkg/Include/WorkArea.h index e3b415db2ca..a767eb693f8 100644 --- a/OvmfPkg/Include/WorkArea.h +++ b/OvmfPkg/Include/WorkArea.h @@ -79,6 +79,10 @@ typedef struct _SEV_WORK_AREA { #define TDX_MEASUREMENT_TDHOB_BITMASK 0x1 #define TDX_MEASUREMENT_CFVIMG_BITMASK 0x2 +#define TDX_MEASUREMENT_TYPE_NONE 0x0 +#define TDX_MEASUREMENT_TYPE_CC 0x1 +#define TDX_MEASUREMENT_TYPE_VTPM 0x2 + typedef struct _TDX_MEASUREMENTS_DATA { UINT32 MeasurementsBitmap; UINT8 TdHobHashValue[SHA384_DIGEST_SIZE]; @@ -93,6 +97,7 @@ typedef struct _SEC_TDX_WORK_AREA { UINT32 Gpaw; UINT64 HobList; TDX_MEASUREMENTS_DATA TdxMeasurementsData; + UINT32 MeasurementType; } SEC_TDX_WORK_AREA; typedef struct _TDX_WORK_AREA {