public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 0/3] Introduce SecTpmMeasurementLibTdx
@ 2022-06-05  1:02 Min Xu
  2022-06-05  1:02 ` [PATCH 1/3] Security: Add SecTpmMeasurementLibTdx Min Xu
                   ` (5 more replies)
  0 siblings, 6 replies; 8+ messages in thread
From: Min Xu @ 2022-06-05  1:02 UTC (permalink / raw)
  To: devel
  Cc: Min Xu, Jiewen Yao, Jian J Wang, Erdem Aktas, James Bottomley,
	Tom Lendacky, Gerd Hoffmann

SecTpmMeasurementLibTdx is an instance of TpmMeasurement lib in SEC phase.
It provides RTMR based measurement functions for Intel Tdx guest.

Commit a708536dce introduces SecMeasurementLibTdx which provides the same
functions. But it is not an instance of TpmMeasurementLib.
We have updated DxeTpmMeasurementLib (which is an instance of
TpmMeasurementLib) to support RTMR based measurement. To make the design
consistent, SecTpmMeasurementLibTdx is introduced. After that
SecMeasurementLibTdx is removed.

Patch #1:
 Introduce SecMeasurementLibTdx
Patch #2:
 Update OvmfPkg to support MeasureHobList/MeasureFvImage with
 SecMeasurementLibTdx.
Patch #3:
 Remove SecMeasurementLibTdx.

Code: https://github.com/mxu9/edk2/tree/secMeasurementLib.v1
  
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Jian J Wang <jian.j.wang@intel.com>
Cc: Erdem Aktas <erdemaktas@google.com>
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>

Min M Xu (3):
  Security: Add SecTpmMeasurementLibTdx
  OvmfPkg: Implement MeasureHobList/MeasureFvImage
  OvmfPkg: Delete SecMeasurementLibTdx

 OvmfPkg/Include/Library/SecMeasurementLib.h   |  46 ---
 OvmfPkg/IntelTdx/IntelTdxX64.dsc              |   2 +-
 OvmfPkg/Library/PeilessStartupLib/IntelTdx.c  | 186 ++++++++++
 .../PeilessStartupLib/PeilessStartup.c        |   1 -
 .../PeilessStartupInternal.h                  |  36 ++
 .../PeilessStartupLib/PeilessStartupLib.inf   |   2 +-
 .../SecMeasurementLib/SecMeasurementLibTdx.c  | 340 ------------------
 .../SecMeasurementLibTdx.inf                  |  30 --
 OvmfPkg/OvmfPkg.dec                           |   4 -
 .../SecTpmMeasurementLibTdx.c                 | 176 +++++++++
 .../SecTpmMeasurementLibTdx.inf               |  34 ++
 SecurityPkg/SecurityPkg.dsc                   |   2 +
 12 files changed, 436 insertions(+), 423 deletions(-)
 delete mode 100644 OvmfPkg/Include/Library/SecMeasurementLib.h
 delete mode 100644 OvmfPkg/Library/SecMeasurementLib/SecMeasurementLibTdx.c
 delete mode 100644 OvmfPkg/Library/SecMeasurementLib/SecMeasurementLibTdx.inf
 create mode 100644 SecurityPkg/Library/SecTpmMeasurementLib/SecTpmMeasurementLibTdx.c
 create mode 100644 SecurityPkg/Library/SecTpmMeasurementLib/SecTpmMeasurementLibTdx.inf

-- 
2.29.2.windows.2


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-06-07 11:37 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-05  1:02 [PATCH 0/3] Introduce SecTpmMeasurementLibTdx Min Xu
2022-06-05  1:02 ` [PATCH 1/3] Security: Add SecTpmMeasurementLibTdx Min Xu
2022-06-05  1:02 ` [PATCH 2/3] OvmfPkg: Implement MeasureHobList/MeasureFvImage Min Xu
2022-06-05  1:02 ` [PATCH 3/3] OvmfPkg: Delete SecMeasurementLibTdx Min Xu
2022-06-05  2:09 ` [PATCH 0/3] Introduce SecTpmMeasurementLibTdx Yao, Jiewen
2022-06-07 10:34 ` Gerd Hoffmann
2022-06-07 11:37   ` Yao, Jiewen
     [not found] ` <16F5977C8286B4B6.24312@groups.io>
2022-06-07 11:33   ` [edk2-devel] " Yao, Jiewen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox