Skip to content

Commit

Permalink
OvmfPkg/WorkArea.h: add MeasurementType for TDX SEC workarea
Browse files Browse the repository at this point in the history
Introduce `MeasurementType` to indicate whether TDX measurement of vTPM
measurement is used.

Signed-off-by: Jiaqi Gao <[email protected]>
  • Loading branch information
gaojiaqi7 committed Aug 20, 2024
1 parent fd9b243 commit f9afe53
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions OvmfPkg/Include/WorkArea.h
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand All @@ -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 {
Expand Down

0 comments on commit f9afe53

Please sign in to comment.