From: "Sami Mujawar" <sami.mujawar@arm.com>
To: "Yao, Jiewen" <jiewen.yao@intel.com>,
"devel@edk2.groups.io" <devel@edk2.groups.io>,
"Xu, Min M" <min.m.xu@intel.com>
Cc: "Kinney, Michael D" <michael.d.kinney@intel.com>,
Liming Gao <gaoliming@byosoft.com.cn>,
"Liu, Zhiguang" <zhiguang.liu@intel.com>,
"Wang, Jian J" <jian.j.wang@intel.com>,
"Lu, Ken" <ken.lu@intel.com>, Gerd Hoffmann <kraxel@redhat.com>,
nd <nd@arm.com>
Subject: Re: [edk2-devel] [PATCH V7 0/3] Introduce CcMeasurementProtocol into EDK2
Date: Mon, 13 Dec 2021 09:28:44 +0000 [thread overview]
Message-ID: <AS8PR08MB6806583834EB2BDF211DA9FC84749@AS8PR08MB6806.eurprd08.prod.outlook.com> (raw)
In-Reply-To: <MW4PR11MB58720B4F4D487992F8B9912B8C739@MW4PR11MB5872.namprd11.prod.outlook.com>
[-- Attachment #1: Type: text/plain, Size: 6926 bytes --]
Hi Jiewen, Min,
Thank you for making the measurement protocol architecture neutral.
I will monitor the mailing list for any further CC measurement interface/implementations. However, I request you to copy me, in case I miss any patches.
Regards,
Sami Mujawar
From: Yao, Jiewen <jiewen.yao@intel.com>
Date: Sunday, 12 December 2021 at 00:29
To: devel@edk2.groups.io <devel@edk2.groups.io>, Yao, Jiewen <jiewen.yao@intel.com>, Xu, Min M <min.m.xu@intel.com>
Cc: Kinney, Michael D <michael.d.kinney@intel.com>, Liming Gao <gaoliming@byosoft.com.cn>, Liu, Zhiguang <zhiguang.liu@intel.com>, Wang, Jian J <jian.j.wang@intel.com>, Lu, Ken <ken.lu@intel.com>, Sami Mujawar <Sami.Mujawar@arm.com>, Gerd Hoffmann <kraxel@redhat.com>
Subject: RE: [edk2-devel] [PATCH V7 0/3] Introduce CcMeasurementProtocol into EDK2
Merged - https://github.com/tianocore/edk2/pull/2291
> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Yao, Jiewen
> Sent: Saturday, December 11, 2021 9:45 PM
> To: Xu, Min M <min.m.xu@intel.com>; devel@edk2.groups.io
> Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Liming Gao
> <gaoliming@byosoft.com.cn>; Liu, Zhiguang <zhiguang.liu@intel.com>; Wang,
> Jian J <jian.j.wang@intel.com>; Lu, Ken <ken.lu@intel.com>; Sami Mujawar
> <sami.mujawar@arm.com>; Gerd Hoffmann <kraxel@redhat.com>
> Subject: Re: [edk2-devel] [PATCH V7 0/3] Introduce CcMeasurementProtocol
> into EDK2
>
> Series: Reviewed-by: Jiewen Yao <Jiewen.yao@intel.com>
>
> > -----Original Message-----
> > From: Xu, Min M <min.m.xu@intel.com>
> > Sent: Saturday, December 11, 2021 9:09 PM
> > To: devel@edk2.groups.io
> > Cc: Xu, Min M <min.m.xu@intel.com>; Kinney, Michael D
> > <michael.d.kinney@intel.com>; Liming Gao <gaoliming@byosoft.com.cn>; Liu,
> > Zhiguang <zhiguang.liu@intel.com>; Yao, Jiewen <jiewen.yao@intel.com>;
> > Wang, Jian J <jian.j.wang@intel.com>; Lu, Ken <ken.lu@intel.com>; Sami
> > Mujawar <sami.mujawar@arm.com>; Gerd Hoffmann <kraxel@redhat.com>
> > Subject: [PATCH V7 0/3] Introduce CcMeasurementProtocol into EDK2
> >
> > BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=3625
> >
> > If Confidential Computing (Cc) firmware supports measurement and an
> > event is created, CC-Guest firmware is designed to report the event
> > log with the same data structure in TCG-Platform-Firmware-Profile
> > specification with EFI_TCG2_EVENT_LOG_FORMAT_TCG_2 format.
> >
> > The CC-Guest firmware supports measurement. It is designed to produce
> > EFI_CC_MEASUREMENT_PROTOCOL with new GUID
> > EFI_CC_MEASUREMENT_PROTOCOL_GUID to report event log and provides
> > hash capability.
> >
> > Patch #1:
> > Introduce the CC Measurement Protocol definition into MdePkg.
> >
> > Patch #2:
> > Update DxeTpm2MeasureBootLib to support CC based measure boot.
> >
> > Patch #3:
> > Update DxeTpmMeasurementLib to support CC based measurement.
> >
> > Code is at https://github.com/mxu9/edk2/tree/td_protocol.v6
> >
> > This patch-set has been tested in Intel's internal hardware platform.
> > Both TD and TPM pass the tests.
> >
> > v7 changes:
> > - Rebase the code base (commit: e81a81e5846e) and update patch-set with
> > uncrustify.
> >
> > v6 changes:
> > - Add ASSERT (sizeof (EFI_CC_EVENT) == sizeof (EFI_TCG2_EVENT)) check.
> > - Update the CcMeasureAndLogData () to add CcProtocol pointer as the
> > input parameter.
> > - Tpm20MeasureAndLogData () / Tpm12MeasureAndLogDat ()
> > / CcMeasureAndLogData () are made static according to Sami's
> > comments.
> >
> > v5 changes:
> > - Add gEfiCcFinalEventsTableGuid in [Guids] section of MdePkg.dec
> > - DxeTpm2MeasureBootLib and DxeTpmMeasurementLib will first
> > call CC protocol to do the measure boot / measurement. If it is not
> > installed, TCG2 protocol will be located and called.
> > - CreateCcEventFromTcg2Event is removed. This is because CcEvent is
> > similar to Tcg2Event except the MrIndex and PcrIndex. So in the code
> > Tcg2Event will be first created and intialized. If
> > CcMeasurementProtocol is called to do the measure boot, then CcEvent
> > points to Tcg2Event and the MrIndex is adjusted.
> > - Some other minor changes.
> >
> > v4 changes:
> > - Rename TeeMeasurementProtocol to CcMeasurementProtocol based
> > on the discussion in below links:
> > https://edk2.groups.io/g/devel/message/82876
> > https://edk2.groups.io/g/devel/message/82999
> > https://edk2.groups.io/g/devel/message/83000
> > With this protocol, CC based measure boot is supported.
> > TD based measure boot is one of the CC based measure boot.
> > - The spec will be updated according to the changes later.
> > - TdProtocol.h is deleted. Its content is merged into CcMeasurement.h.
> > - Add gEfiCcFinalEventsTableGuid definition in MdePkg.dec
> > - Update the description in DxeTpm2MeasureBootLib.inf
> > and DxeTpmMeasurementLib.inf
> >
> > v3 changes:
> > - Rename TdProtocol to TeeMeasurementProtocol which is a neutral name.
> > With this protocol, TEE based measure boot is supported.
> > TD based measure boot is one of the TEE based measure boot.
> > - The spec will be updated according to the changes later.
> > - Fix errors in DxeTpm2MeasureBootLib.
> >
> > v2 changes:
> > - TD based measure boot is implemented in DxeTpm2MeasureBootLib.
> > This minimize the code changes.
> > - TD based measurement is added. It is implemented in
> > DxeTpmMeasurementLib.
> > - Fix the typo in comments.
> >
> > Cc: Michael D Kinney <michael.d.kinney@intel.com>
> > Cc: Liming Gao <gaoliming@byosoft.com.cn>
> > Cc: Zhiguang Liu <zhiguang.liu@intel.com>
> > Cc: Jiewen Yao <jiewen.yao@intel.com>
> > Cc: Jian J Wang <jian.j.wang@intel.com>
> > Cc: Ken Lu <ken.lu@intel.com>
> > Cc: Sami Mujawar <sami.mujawar@arm.com>
> > Cc: Gerd Hoffmann <kraxel@redhat.com>
> > Reviewed-by: Sami Mujawar <sami.mujawar@arm.com>
> > Tested-by: Min Xu <min.m.xu@intel.com>
> > Signed-off-by: Min Xu <min.m.xu@intel.com>
> >
> > Min Xu (3):
> > MdePkg: Introduce CcMeasurementProtocol for CC Guest firmware
> > SecurityPkg: Support CcMeasurementProtocol in DxeTpm2MeasureBootLib
> > SecurityPkg: Support CcMeasurementProtocol in DxeTpmMeasurementLib
> >
> > MdePkg/Include/Protocol/CcMeasurement.h | 302 +++++++++++++++
> > MdePkg/MdePkg.dec | 6 +
> > .../DxeTpm2MeasureBootLib.c | 343 ++++++++++++++----
> > .../DxeTpm2MeasureBootLib.inf | 3 +-
> > .../DxeTpmMeasurementLib.c | 122 ++++++-
> > .../DxeTpmMeasurementLib.inf | 9 +-
> > 6 files changed, 686 insertions(+), 99 deletions(-)
> > create mode 100644 MdePkg/Include/Protocol/CcMeasurement.h
> >
> > --
> > 2.29.2.windows.2
>
>
>
>
>
[-- Attachment #2: Type: text/html, Size: 12818 bytes --]
prev parent reply other threads:[~2021-12-13 9:29 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-11 13:08 [PATCH V7 0/3] Introduce CcMeasurementProtocol into EDK2 Min Xu
2021-12-11 13:08 ` [PATCH V7 1/3] MdePkg: Introduce CcMeasurementProtocol for CC Guest firmware Min Xu
2021-12-11 13:08 ` [PATCH V7 2/3] SecurityPkg: Support CcMeasurementProtocol in DxeTpm2MeasureBootLib Min Xu
2021-12-11 13:08 ` [PATCH V7 3/3] SecurityPkg: Support CcMeasurementProtocol in DxeTpmMeasurementLib Min Xu
2021-12-11 13:45 ` [PATCH V7 0/3] Introduce CcMeasurementProtocol into EDK2 Yao, Jiewen
[not found] ` <16BFB74A32C27317.32732@groups.io>
2021-12-12 0:29 ` [edk2-devel] " Yao, Jiewen
2021-12-13 9:28 ` Sami Mujawar [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=AS8PR08MB6806583834EB2BDF211DA9FC84749@AS8PR08MB6806.eurprd08.prod.outlook.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox