[edk2-devel] [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table

Min Xu posted 8 patches 3 years, 11 months ago
There is a newer version of this series
[edk2-devel] [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table
Posted by Min Xu 3 years, 11 months ago
RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3853

TDVF set up an ACPI table (EFI_CC_EVENTLOG_ACPI_TABLE) to pass the
event-log information. The event log created by the TD owner contains
the hashes to reconstruct the MRTD and RTMR registers.

Please refer to Sec 4.3.3 in blow link:
https://www.intel.com/content/dam/develop/external/us/en/documents/
intel-tdx-guest-hypervisor-communication-interface-1.0-344426-002.pdf

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>
Signed-off-by: Min Xu <min.m.xu@intel.com>
---
 MdePkg/Include/Protocol/CcMeasurement.h | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)

diff --git a/MdePkg/Include/Protocol/CcMeasurement.h b/MdePkg/Include/Protocol/CcMeasurement.h
index 83eaafaf10a6..86de226c1d82 100644
--- a/MdePkg/Include/Protocol/CcMeasurement.h
+++ b/MdePkg/Include/Protocol/CcMeasurement.h
@@ -307,4 +307,24 @@ extern EFI_GUID  gEfiCcFinalEventsTableGuid;
 
 extern EFI_GUID  gCcEventEntryHobGuid;
 
+//
+// Define the CC Measure EventLog ACPI Table
+//
+#pragma pack(1)
+
+typedef struct {
+  EFI_ACPI_DESCRIPTION_HEADER    Header;
+  UINT32                         Rsvd;
+  UINT64                         Laml;
+  UINT64                         Lasa;
+} EFI_CC_EVENTLOG_ACPI_TABLE;
+
+#pragma pack()
+
+//
+// Define the signature and revision of CC Measurement EventLog ACPI Table for Td guest
+//
+#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_SIGNATURE  SIGNATURE_32('T', 'D', 'E', 'L')
+#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_REVISION   1
+
 #endif
-- 
2.29.2.windows.2



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#87173): https://edk2.groups.io/g/devel/message/87173
Mute This Topic: https://groups.io/mt/89491522/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table
Posted by Sami Mujawar 3 years, 11 months ago
Hi Min,

Thank you for this patch.

Please find my response inline marked [SAMI].

Regards,

Sami Mujawar


On 02/03/2022 12:28 AM, Min Xu wrote:
> RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3853
>
> TDVF set up an ACPI table (EFI_CC_EVENTLOG_ACPI_TABLE) to pass the
> event-log information. The event log created by the TD owner contains
> the hashes to reconstruct the MRTD and RTMR registers.
>
> Please refer to Sec 4.3.3 in blow link:
> https://www.intel.com/content/dam/develop/external/us/en/documents/
> intel-tdx-guest-hypervisor-communication-interface-1.0-344426-002.pdf
>
> 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>
> Signed-off-by: Min Xu <min.m.xu@intel.com>
> ---
>   MdePkg/Include/Protocol/CcMeasurement.h | 20 ++++++++++++++++++++
>   1 file changed, 20 insertions(+)
>
> diff --git a/MdePkg/Include/Protocol/CcMeasurement.h b/MdePkg/Include/Protocol/CcMeasurement.h
> index 83eaafaf10a6..86de226c1d82 100644
> --- a/MdePkg/Include/Protocol/CcMeasurement.h
> +++ b/MdePkg/Include/Protocol/CcMeasurement.h
> @@ -307,4 +307,24 @@ extern EFI_GUID  gEfiCcFinalEventsTableGuid;
>   
>   extern EFI_GUID  gCcEventEntryHobGuid;
>   
> +//
> +// Define the CC Measure EventLog ACPI Table
> +//
> +#pragma pack(1)
> +
> +typedef struct {
> +  EFI_ACPI_DESCRIPTION_HEADER    Header;
> +  UINT32                         Rsvd;
> +  UINT64                         Laml;
> +  UINT64                         Lasa;
> +} EFI_CC_EVENTLOG_ACPI_TABLE;
> +
> +#pragma pack()
> +
> +//
> +// Define the signature and revision of CC Measurement EventLog ACPI Table for Td guest
> +//
> +#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_SIGNATURE  SIGNATURE_32('T', 'D', 'E', 'L')
> +#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_REVISION   1
[SAMI] I can see that the above macros have the _TD_ infix. Is the 
intention here that each architecture shall define its own signature and 
revision?
Would it be possible to make the signature generic across architectures, 
e.g. "SIGNATURE_32('C', 'C', 'E', 'L')" ?
[/SAMI]
> +
>   #endif



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#87391): https://edk2.groups.io/g/devel/message/87391
Mute This Topic: https://groups.io/mt/89491522/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table
Posted by Yao, Jiewen 3 years, 11 months ago
HI Sami
I think it is OK to update signature to `CCEL`. That means it will be applicable for other CC, right?

Then, I recommend we add CcType there.

typedef struct {
  EFI_ACPI_DESCRIPTION_HEADER    Header;
  EFI_CC_TYPE               CcType; <== new field.
  UINT16                         Rsvd;
  UINT64                         Laml;
  UINT64                         Lasa;
} EFI_CC_EVENTLOG_ACPI_TABLE;

Do you agree?

Thank you
Yao Jiewen

> -----Original Message-----
> From: Sami Mujawar <sami.mujawar@arm.com>
> Sent: Wednesday, March 9, 2022 11:35 PM
> To: Xu, Min M <min.m.xu@intel.com>; devel@edk2.groups.io
> Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
> <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>; Gerd Hoffmann <kraxel@redhat.com>; nd <nd@arm.com>;
> Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>;
> thanu.rangarajan@arm.com
> Subject: Re: [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table
> 
> Hi Min,
> 
> Thank you for this patch.
> 
> Please find my response inline marked [SAMI].
> 
> Regards,
> 
> Sami Mujawar
> 
> 
> On 02/03/2022 12:28 AM, Min Xu wrote:
> > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3853
> >
> > TDVF set up an ACPI table (EFI_CC_EVENTLOG_ACPI_TABLE) to pass the
> > event-log information. The event log created by the TD owner contains
> > the hashes to reconstruct the MRTD and RTMR registers.
> >
> > Please refer to Sec 4.3.3 in blow link:
> > https://www.intel.com/content/dam/develop/external/us/en/documents/
> > intel-tdx-guest-hypervisor-communication-interface-1.0-344426-002.pdf
> >
> > 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>
> > Signed-off-by: Min Xu <min.m.xu@intel.com>
> > ---
> >   MdePkg/Include/Protocol/CcMeasurement.h | 20 ++++++++++++++++++++
> >   1 file changed, 20 insertions(+)
> >
> > diff --git a/MdePkg/Include/Protocol/CcMeasurement.h
> b/MdePkg/Include/Protocol/CcMeasurement.h
> > index 83eaafaf10a6..86de226c1d82 100644
> > --- a/MdePkg/Include/Protocol/CcMeasurement.h
> > +++ b/MdePkg/Include/Protocol/CcMeasurement.h
> > @@ -307,4 +307,24 @@ extern EFI_GUID  gEfiCcFinalEventsTableGuid;
> >
> >   extern EFI_GUID  gCcEventEntryHobGuid;
> >
> > +//
> > +// Define the CC Measure EventLog ACPI Table
> > +//
> > +#pragma pack(1)
> > +
> > +typedef struct {
> > +  EFI_ACPI_DESCRIPTION_HEADER    Header;
> > +  UINT32                         Rsvd;
> > +  UINT64                         Laml;
> > +  UINT64                         Lasa;
> > +} EFI_CC_EVENTLOG_ACPI_TABLE;
> > +
> > +#pragma pack()
> > +
> > +//
> > +// Define the signature and revision of CC Measurement EventLog ACPI Table
> for Td guest
> > +//
> > +#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_SIGNATURE  SIGNATURE_32('T',
> 'D', 'E', 'L')
> > +#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_REVISION   1
> [SAMI] I can see that the above macros have the _TD_ infix. Is the
> intention here that each architecture shall define its own signature and
> revision?
> Would it be possible to make the signature generic across architectures,
> e.g. "SIGNATURE_32('C', 'C', 'E', 'L')" ?
> [/SAMI]
> > +
> >   #endif



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#87396): https://edk2.groups.io/g/devel/message/87396
Mute This Topic: https://groups.io/mt/89491522/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [edk2-devel] [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table
Posted by Sami Mujawar 3 years, 11 months ago
Hi Jiewen,

Please find my response inline marked [SAMI].

Regards,

Sami Mujawar

On 10/03/2022, 05:49, "Yao, Jiewen" <jiewen.yao@intel.com> wrote:

    HI Sami
    I think it is OK to update signature to `CCEL`. That means it will be applicable for other CC, right?
[SAMI] Yes, the same table can then be used by other CC. 

    Then, I recommend we add CcType there.

    typedef struct {
      EFI_ACPI_DESCRIPTION_HEADER    Header;
      EFI_CC_TYPE               CcType; <== new field.
      UINT16                         Rsvd;
      UINT64                         Laml;
      UINT64                         Lasa;
    } EFI_CC_EVENTLOG_ACPI_TABLE;

    Do you agree?
[SAMI] Agree, the above suggestion looks good to me. 

    Thank you
    Yao Jiewen

    > -----Original Message-----
    > From: Sami Mujawar <sami.mujawar@arm.com>
    > Sent: Wednesday, March 9, 2022 11:35 PM
    > To: Xu, Min M <min.m.xu@intel.com>; devel@edk2.groups.io
    > Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
    > <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>; Gerd Hoffmann <kraxel@redhat.com>; nd <nd@arm.com>;
    > Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>;
    > thanu.rangarajan@arm.com
    > Subject: Re: [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table
    > 
    > Hi Min,
    > 
    > Thank you for this patch.
    > 
    > Please find my response inline marked [SAMI].
    > 
    > Regards,
    > 
    > Sami Mujawar
    > 
    > 
    > On 02/03/2022 12:28 AM, Min Xu wrote:
    > > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3853
    > >
    > > TDVF set up an ACPI table (EFI_CC_EVENTLOG_ACPI_TABLE) to pass the
    > > event-log information. The event log created by the TD owner contains
    > > the hashes to reconstruct the MRTD and RTMR registers.
    > >
    > > Please refer to Sec 4.3.3 in blow link:
    > > https://www.intel.com/content/dam/develop/external/us/en/documents/
    > > intel-tdx-guest-hypervisor-communication-interface-1.0-344426-002.pdf
    > >
    > > 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>
    > > Signed-off-by: Min Xu <min.m.xu@intel.com>
    > > ---
    > >   MdePkg/Include/Protocol/CcMeasurement.h | 20 ++++++++++++++++++++
    > >   1 file changed, 20 insertions(+)
    > >
    > > diff --git a/MdePkg/Include/Protocol/CcMeasurement.h
    > b/MdePkg/Include/Protocol/CcMeasurement.h
    > > index 83eaafaf10a6..86de226c1d82 100644
    > > --- a/MdePkg/Include/Protocol/CcMeasurement.h
    > > +++ b/MdePkg/Include/Protocol/CcMeasurement.h
    > > @@ -307,4 +307,24 @@ extern EFI_GUID  gEfiCcFinalEventsTableGuid;
    > >
    > >   extern EFI_GUID  gCcEventEntryHobGuid;
    > >
    > > +//
    > > +// Define the CC Measure EventLog ACPI Table
    > > +//
    > > +#pragma pack(1)
    > > +
    > > +typedef struct {
    > > +  EFI_ACPI_DESCRIPTION_HEADER    Header;
    > > +  UINT32                         Rsvd;
    > > +  UINT64                         Laml;
    > > +  UINT64                         Lasa;
    > > +} EFI_CC_EVENTLOG_ACPI_TABLE;
    > > +
    > > +#pragma pack()
    > > +
    > > +//
    > > +// Define the signature and revision of CC Measurement EventLog ACPI Table
    > for Td guest
    > > +//
    > > +#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_SIGNATURE  SIGNATURE_32('T',
    > 'D', 'E', 'L')
    > > +#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_REVISION   1
    > [SAMI] I can see that the above macros have the _TD_ infix. Is the
    > intention here that each architecture shall define its own signature and
    > revision?
    > Would it be possible to make the signature generic across architectures,
    > e.g. "SIGNATURE_32('C', 'C', 'E', 'L')" ?
    > [/SAMI]
    > > +
    > >   #endif




-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#87402): https://edk2.groups.io/g/devel/message/87402
Mute This Topic: https://groups.io/mt/89491522/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [edk2-devel] [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table
Posted by Sami Mujawar 3 years, 10 months ago
Hi Jiewen,

I was informed there is an ASWG ECR https://mantis.uefi.org/mantis/view.php?id=2177 for TDEL. I can see the content has been approved for ACPI 6.5.

Do you plan to update this ECR to reflect the changes for CCEL or this would be a separate request?

Regards,

Sami Mujawar

On 10/03/2022, 10:27, "Sami Mujawar" <Sami.Mujawar@arm.com> wrote:

    Hi Jiewen,

    Please find my response inline marked [SAMI].

    Regards,

    Sami Mujawar

    On 10/03/2022, 05:49, "Yao, Jiewen" <jiewen.yao@intel.com> wrote:

        HI Sami
        I think it is OK to update signature to `CCEL`. That means it will be applicable for other CC, right?
    [SAMI] Yes, the same table can then be used by other CC. 

        Then, I recommend we add CcType there.

        typedef struct {
          EFI_ACPI_DESCRIPTION_HEADER    Header;
          EFI_CC_TYPE               CcType; <== new field.
          UINT16                         Rsvd;
          UINT64                         Laml;
          UINT64                         Lasa;
        } EFI_CC_EVENTLOG_ACPI_TABLE;

        Do you agree?
    [SAMI] Agree, the above suggestion looks good to me. 

        Thank you
        Yao Jiewen

        > -----Original Message-----
        > From: Sami Mujawar <sami.mujawar@arm.com>
        > Sent: Wednesday, March 9, 2022 11:35 PM
        > To: Xu, Min M <min.m.xu@intel.com>; devel@edk2.groups.io
        > Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
        > <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>; Gerd Hoffmann <kraxel@redhat.com>; nd <nd@arm.com>;
        > Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>;
        > thanu.rangarajan@arm.com
        > Subject: Re: [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table
        > 
        > Hi Min,
        > 
        > Thank you for this patch.
        > 
        > Please find my response inline marked [SAMI].
        > 
        > Regards,
        > 
        > Sami Mujawar
        > 
        > 
        > On 02/03/2022 12:28 AM, Min Xu wrote:
        > > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3853
        > >
        > > TDVF set up an ACPI table (EFI_CC_EVENTLOG_ACPI_TABLE) to pass the
        > > event-log information. The event log created by the TD owner contains
        > > the hashes to reconstruct the MRTD and RTMR registers.
        > >
        > > Please refer to Sec 4.3.3 in blow link:
        > > https://www.intel.com/content/dam/develop/external/us/en/documents/
        > > intel-tdx-guest-hypervisor-communication-interface-1.0-344426-002.pdf
        > >
        > > 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>
        > > Signed-off-by: Min Xu <min.m.xu@intel.com>
        > > ---
        > >   MdePkg/Include/Protocol/CcMeasurement.h | 20 ++++++++++++++++++++
        > >   1 file changed, 20 insertions(+)
        > >
        > > diff --git a/MdePkg/Include/Protocol/CcMeasurement.h
        > b/MdePkg/Include/Protocol/CcMeasurement.h
        > > index 83eaafaf10a6..86de226c1d82 100644
        > > --- a/MdePkg/Include/Protocol/CcMeasurement.h
        > > +++ b/MdePkg/Include/Protocol/CcMeasurement.h
        > > @@ -307,4 +307,24 @@ extern EFI_GUID  gEfiCcFinalEventsTableGuid;
        > >
        > >   extern EFI_GUID  gCcEventEntryHobGuid;
        > >
        > > +//
        > > +// Define the CC Measure EventLog ACPI Table
        > > +//
        > > +#pragma pack(1)
        > > +
        > > +typedef struct {
        > > +  EFI_ACPI_DESCRIPTION_HEADER    Header;
        > > +  UINT32                         Rsvd;
        > > +  UINT64                         Laml;
        > > +  UINT64                         Lasa;
        > > +} EFI_CC_EVENTLOG_ACPI_TABLE;
        > > +
        > > +#pragma pack()
        > > +
        > > +//
        > > +// Define the signature and revision of CC Measurement EventLog ACPI Table
        > for Td guest
        > > +//
        > > +#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_SIGNATURE  SIGNATURE_32('T',
        > 'D', 'E', 'L')
        > > +#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_REVISION   1
        > [SAMI] I can see that the above macros have the _TD_ infix. Is the
        > intention here that each architecture shall define its own signature and
        > revision?
        > Would it be possible to make the signature generic across architectures,
        > e.g. "SIGNATURE_32('C', 'C', 'E', 'L')" ?
        > [/SAMI]
        > > +
        > >   #endif





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#87662): https://edk2.groups.io/g/devel/message/87662
Mute This Topic: https://groups.io/mt/89491522/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [edk2-devel] [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table
Posted by Yao, Jiewen 3 years, 10 months ago
Thanks to remind me. 

I uploaded version 2 in the same mantis.

Thank you
Yao Jiewen

> -----Original Message-----
> From: Sami Mujawar <Sami.Mujawar@arm.com>
> Sent: Thursday, March 17, 2022 9:10 PM
> To: Yao, Jiewen <jiewen.yao@intel.com>; Xu, Min M <min.m.xu@intel.com>;
> devel@edk2.groups.io
> Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
> <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>; Samer El-Haj-Mahmoud <Samer.El-
> Haj-Mahmoud@arm.com>; Thanu Rangarajan <Thanu.Rangarajan@arm.com>
> Subject: Re: [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table
> 
> Hi Jiewen,
> 
> I was informed there is an ASWG ECR
> https://mantis.uefi.org/mantis/view.php?id=2177 for TDEL. I can see the
> content has been approved for ACPI 6.5.
> 
> Do you plan to update this ECR to reflect the changes for CCEL or this would be
> a separate request?
> 
> Regards,
> 
> Sami Mujawar
> 
> On 10/03/2022, 10:27, "Sami Mujawar" <Sami.Mujawar@arm.com> wrote:
> 
>     Hi Jiewen,
> 
>     Please find my response inline marked [SAMI].
> 
>     Regards,
> 
>     Sami Mujawar
> 
>     On 10/03/2022, 05:49, "Yao, Jiewen" <jiewen.yao@intel.com> wrote:
> 
>         HI Sami
>         I think it is OK to update signature to `CCEL`. That means it will be applicable
> for other CC, right?
>     [SAMI] Yes, the same table can then be used by other CC.
> 
>         Then, I recommend we add CcType there.
> 
>         typedef struct {
>           EFI_ACPI_DESCRIPTION_HEADER    Header;
>           EFI_CC_TYPE               CcType; <== new field.
>           UINT16                         Rsvd;
>           UINT64                         Laml;
>           UINT64                         Lasa;
>         } EFI_CC_EVENTLOG_ACPI_TABLE;
> 
>         Do you agree?
>     [SAMI] Agree, the above suggestion looks good to me.
> 
>         Thank you
>         Yao Jiewen
> 
>         > -----Original Message-----
>         > From: Sami Mujawar <sami.mujawar@arm.com>
>         > Sent: Wednesday, March 9, 2022 11:35 PM
>         > To: Xu, Min M <min.m.xu@intel.com>; devel@edk2.groups.io
>         > Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
>         > <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>; Gerd Hoffmann <kraxel@redhat.com>; nd
> <nd@arm.com>;
>         > Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>;
>         > thanu.rangarajan@arm.com
>         > Subject: Re: [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI
> Table
>         >
>         > Hi Min,
>         >
>         > Thank you for this patch.
>         >
>         > Please find my response inline marked [SAMI].
>         >
>         > Regards,
>         >
>         > Sami Mujawar
>         >
>         >
>         > On 02/03/2022 12:28 AM, Min Xu wrote:
>         > > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3853
>         > >
>         > > TDVF set up an ACPI table (EFI_CC_EVENTLOG_ACPI_TABLE) to pass the
>         > > event-log information. The event log created by the TD owner contains
>         > > the hashes to reconstruct the MRTD and RTMR registers.
>         > >
>         > > Please refer to Sec 4.3.3 in blow link:
>         > >
> https://www.intel.com/content/dam/develop/external/us/en/documents/
>         > > intel-tdx-guest-hypervisor-communication-interface-1.0-344426-
> 002.pdf
>         > >
>         > > 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>
>         > > Signed-off-by: Min Xu <min.m.xu@intel.com>
>         > > ---
>         > >   MdePkg/Include/Protocol/CcMeasurement.h | 20
> ++++++++++++++++++++
>         > >   1 file changed, 20 insertions(+)
>         > >
>         > > diff --git a/MdePkg/Include/Protocol/CcMeasurement.h
>         > b/MdePkg/Include/Protocol/CcMeasurement.h
>         > > index 83eaafaf10a6..86de226c1d82 100644
>         > > --- a/MdePkg/Include/Protocol/CcMeasurement.h
>         > > +++ b/MdePkg/Include/Protocol/CcMeasurement.h
>         > > @@ -307,4 +307,24 @@ extern EFI_GUID  gEfiCcFinalEventsTableGuid;
>         > >
>         > >   extern EFI_GUID  gCcEventEntryHobGuid;
>         > >
>         > > +//
>         > > +// Define the CC Measure EventLog ACPI Table
>         > > +//
>         > > +#pragma pack(1)
>         > > +
>         > > +typedef struct {
>         > > +  EFI_ACPI_DESCRIPTION_HEADER    Header;
>         > > +  UINT32                         Rsvd;
>         > > +  UINT64                         Laml;
>         > > +  UINT64                         Lasa;
>         > > +} EFI_CC_EVENTLOG_ACPI_TABLE;
>         > > +
>         > > +#pragma pack()
>         > > +
>         > > +//
>         > > +// Define the signature and revision of CC Measurement EventLog ACPI
> Table
>         > for Td guest
>         > > +//
>         > > +#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_SIGNATURE
> SIGNATURE_32('T',
>         > 'D', 'E', 'L')
>         > > +#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_REVISION   1
>         > [SAMI] I can see that the above macros have the _TD_ infix. Is the
>         > intention here that each architecture shall define its own signature and
>         > revision?
>         > Would it be possible to make the signature generic across architectures,
>         > e.g. "SIGNATURE_32('C', 'C', 'E', 'L')" ?
>         > [/SAMI]
>         > > +
>         > >   #endif
> 
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#87663): https://edk2.groups.io/g/devel/message/87663
Mute This Topic: https://groups.io/mt/89491522/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [edk2-devel] [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table
Posted by Samer El-Haj-Mahmoud 3 years, 10 months ago
Thanks Sami and Jiewen.

I will bring this to ASWG attention to confirm the change.



> -----Original Message-----
> From: Yao, Jiewen <jiewen.yao@intel.com>
> Sent: Thursday, March 17, 2022 9:23 AM
> To: Sami Mujawar <Sami.Mujawar@arm.com>; Xu, Min M
> <min.m.xu@intel.com>; devel@edk2.groups.io
> Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
> <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>; Samer El-Haj-Mahmoud
> <Samer.El-Haj-Mahmoud@arm.com>; Thanu Rangarajan
> <Thanu.Rangarajan@arm.com>
> Subject: RE: [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table
> 
> Thanks to remind me.
> 
> I uploaded version 2 in the same mantis.
> 
> Thank you
> Yao Jiewen
> 
> > -----Original Message-----
> > From: Sami Mujawar <Sami.Mujawar@arm.com>
> > Sent: Thursday, March 17, 2022 9:10 PM
> > To: Yao, Jiewen <jiewen.yao@intel.com>; Xu, Min M
> <min.m.xu@intel.com>;
> > devel@edk2.groups.io
> > Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
> > <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>; Samer El-Haj-Mahmoud
> <Samer.El-
> > Haj-Mahmoud@arm.com>; Thanu Rangarajan
> <Thanu.Rangarajan@arm.com>
> > Subject: Re: [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table
> >
> > Hi Jiewen,
> >
> > I was informed there is an ASWG ECR
> > https://mantis.uefi.org/mantis/view.php?id=2177 for TDEL. I can see the
> > content has been approved for ACPI 6.5.
> >
> > Do you plan to update this ECR to reflect the changes for CCEL or this would
> be
> > a separate request?
> >
> > Regards,
> >
> > Sami Mujawar
> >
> > On 10/03/2022, 10:27, "Sami Mujawar" <Sami.Mujawar@arm.com> wrote:
> >
> >     Hi Jiewen,
> >
> >     Please find my response inline marked [SAMI].
> >
> >     Regards,
> >
> >     Sami Mujawar
> >
> >     On 10/03/2022, 05:49, "Yao, Jiewen" <jiewen.yao@intel.com> wrote:
> >
> >         HI Sami
> >         I think it is OK to update signature to `CCEL`. That means it will be
> applicable
> > for other CC, right?
> >     [SAMI] Yes, the same table can then be used by other CC.
> >
> >         Then, I recommend we add CcType there.
> >
> >         typedef struct {
> >           EFI_ACPI_DESCRIPTION_HEADER    Header;
> >           EFI_CC_TYPE               CcType; <== new field.
> >           UINT16                         Rsvd;
> >           UINT64                         Laml;
> >           UINT64                         Lasa;
> >         } EFI_CC_EVENTLOG_ACPI_TABLE;
> >
> >         Do you agree?
> >     [SAMI] Agree, the above suggestion looks good to me.
> >
> >         Thank you
> >         Yao Jiewen
> >
> >         > -----Original Message-----
> >         > From: Sami Mujawar <sami.mujawar@arm.com>
> >         > Sent: Wednesday, March 9, 2022 11:35 PM
> >         > To: Xu, Min M <min.m.xu@intel.com>; devel@edk2.groups.io
> >         > Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
> >         > <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>; Gerd Hoffmann <kraxel@redhat.com>; nd
> > <nd@arm.com>;
> >         > Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>;
> >         > thanu.rangarajan@arm.com
> >         > Subject: Re: [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI
> > Table
> >         >
> >         > Hi Min,
> >         >
> >         > Thank you for this patch.
> >         >
> >         > Please find my response inline marked [SAMI].
> >         >
> >         > Regards,
> >         >
> >         > Sami Mujawar
> >         >
> >         >
> >         > On 02/03/2022 12:28 AM, Min Xu wrote:
> >         > > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3853
> >         > >
> >         > > TDVF set up an ACPI table (EFI_CC_EVENTLOG_ACPI_TABLE) to pass
> the
> >         > > event-log information. The event log created by the TD owner
> contains
> >         > > the hashes to reconstruct the MRTD and RTMR registers.
> >         > >
> >         > > Please refer to Sec 4.3.3 in blow link:
> >         > >
> > https://www.intel.com/content/dam/develop/external/us/en/documents/
> >         > > intel-tdx-guest-hypervisor-communication-interface-1.0-344426-
> > 002.pdf
> >         > >
> >         > > 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>
> >         > > Signed-off-by: Min Xu <min.m.xu@intel.com>
> >         > > ---
> >         > >   MdePkg/Include/Protocol/CcMeasurement.h | 20
> > ++++++++++++++++++++
> >         > >   1 file changed, 20 insertions(+)
> >         > >
> >         > > diff --git a/MdePkg/Include/Protocol/CcMeasurement.h
> >         > b/MdePkg/Include/Protocol/CcMeasurement.h
> >         > > index 83eaafaf10a6..86de226c1d82 100644
> >         > > --- a/MdePkg/Include/Protocol/CcMeasurement.h
> >         > > +++ b/MdePkg/Include/Protocol/CcMeasurement.h
> >         > > @@ -307,4 +307,24 @@ extern EFI_GUID
> gEfiCcFinalEventsTableGuid;
> >         > >
> >         > >   extern EFI_GUID  gCcEventEntryHobGuid;
> >         > >
> >         > > +//
> >         > > +// Define the CC Measure EventLog ACPI Table
> >         > > +//
> >         > > +#pragma pack(1)
> >         > > +
> >         > > +typedef struct {
> >         > > +  EFI_ACPI_DESCRIPTION_HEADER    Header;
> >         > > +  UINT32                         Rsvd;
> >         > > +  UINT64                         Laml;
> >         > > +  UINT64                         Lasa;
> >         > > +} EFI_CC_EVENTLOG_ACPI_TABLE;
> >         > > +
> >         > > +#pragma pack()
> >         > > +
> >         > > +//
> >         > > +// Define the signature and revision of CC Measurement EventLog
> ACPI
> > Table
> >         > for Td guest
> >         > > +//
> >         > > +#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_SIGNATURE
> > SIGNATURE_32('T',
> >         > 'D', 'E', 'L')
> >         > > +#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_REVISION   1
> >         > [SAMI] I can see that the above macros have the _TD_ infix. Is the
> >         > intention here that each architecture shall define its own signature
> and
> >         > revision?
> >         > Would it be possible to make the signature generic across
> architectures,
> >         > e.g. "SIGNATURE_32('C', 'C', 'E', 'L')" ?
> >         > [/SAMI]
> >         > > +
> >         > >   #endif
> >
> >



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#87664): https://edk2.groups.io/g/devel/message/87664
Mute This Topic: https://groups.io/mt/89491522/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-


Re: [edk2-devel] [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table
Posted by Yao, Jiewen 3 years, 10 months ago
Good, Thank you Samer.

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Samer El-
> Haj-Mahmoud
> Sent: Thursday, March 17, 2022 9:26 PM
> To: Yao, Jiewen <jiewen.yao@intel.com>; Sami Mujawar
> <Sami.Mujawar@arm.com>; Xu, Min M <min.m.xu@intel.com>;
> devel@edk2.groups.io
> Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
> <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>; Thanu Rangarajan
> <Thanu.Rangarajan@arm.com>; Samer El-Haj-Mahmoud <Samer.El-Haj-
> Mahmoud@arm.com>
> Subject: Re: [edk2-devel] [PATCH 5/8] MdePkg: Define CC Measure EventLog
> ACPI Table
> 
> Thanks Sami and Jiewen.
> 
> I will bring this to ASWG attention to confirm the change.
> 
> 
> 
> > -----Original Message-----
> > From: Yao, Jiewen <jiewen.yao@intel.com>
> > Sent: Thursday, March 17, 2022 9:23 AM
> > To: Sami Mujawar <Sami.Mujawar@arm.com>; Xu, Min M
> > <min.m.xu@intel.com>; devel@edk2.groups.io
> > Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
> > <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>; Samer El-Haj-Mahmoud
> > <Samer.El-Haj-Mahmoud@arm.com>; Thanu Rangarajan
> > <Thanu.Rangarajan@arm.com>
> > Subject: RE: [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table
> >
> > Thanks to remind me.
> >
> > I uploaded version 2 in the same mantis.
> >
> > Thank you
> > Yao Jiewen
> >
> > > -----Original Message-----
> > > From: Sami Mujawar <Sami.Mujawar@arm.com>
> > > Sent: Thursday, March 17, 2022 9:10 PM
> > > To: Yao, Jiewen <jiewen.yao@intel.com>; Xu, Min M
> > <min.m.xu@intel.com>;
> > > devel@edk2.groups.io
> > > Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
> > > <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>; Samer El-Haj-Mahmoud
> > <Samer.El-
> > > Haj-Mahmoud@arm.com>; Thanu Rangarajan
> > <Thanu.Rangarajan@arm.com>
> > > Subject: Re: [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI Table
> > >
> > > Hi Jiewen,
> > >
> > > I was informed there is an ASWG ECR
> > > https://mantis.uefi.org/mantis/view.php?id=2177 for TDEL. I can see the
> > > content has been approved for ACPI 6.5.
> > >
> > > Do you plan to update this ECR to reflect the changes for CCEL or this would
> > be
> > > a separate request?
> > >
> > > Regards,
> > >
> > > Sami Mujawar
> > >
> > > On 10/03/2022, 10:27, "Sami Mujawar" <Sami.Mujawar@arm.com> wrote:
> > >
> > >     Hi Jiewen,
> > >
> > >     Please find my response inline marked [SAMI].
> > >
> > >     Regards,
> > >
> > >     Sami Mujawar
> > >
> > >     On 10/03/2022, 05:49, "Yao, Jiewen" <jiewen.yao@intel.com> wrote:
> > >
> > >         HI Sami
> > >         I think it is OK to update signature to `CCEL`. That means it will be
> > applicable
> > > for other CC, right?
> > >     [SAMI] Yes, the same table can then be used by other CC.
> > >
> > >         Then, I recommend we add CcType there.
> > >
> > >         typedef struct {
> > >           EFI_ACPI_DESCRIPTION_HEADER    Header;
> > >           EFI_CC_TYPE               CcType; <== new field.
> > >           UINT16                         Rsvd;
> > >           UINT64                         Laml;
> > >           UINT64                         Lasa;
> > >         } EFI_CC_EVENTLOG_ACPI_TABLE;
> > >
> > >         Do you agree?
> > >     [SAMI] Agree, the above suggestion looks good to me.
> > >
> > >         Thank you
> > >         Yao Jiewen
> > >
> > >         > -----Original Message-----
> > >         > From: Sami Mujawar <sami.mujawar@arm.com>
> > >         > Sent: Wednesday, March 9, 2022 11:35 PM
> > >         > To: Xu, Min M <min.m.xu@intel.com>; devel@edk2.groups.io
> > >         > Cc: Kinney, Michael D <michael.d.kinney@intel.com>; Gao, Liming
> > >         > <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>; Gerd Hoffmann <kraxel@redhat.com>; nd
> > > <nd@arm.com>;
> > >         > Samer El-Haj-Mahmoud <Samer.El-Haj-Mahmoud@arm.com>;
> > >         > thanu.rangarajan@arm.com
> > >         > Subject: Re: [PATCH 5/8] MdePkg: Define CC Measure EventLog ACPI
> > > Table
> > >         >
> > >         > Hi Min,
> > >         >
> > >         > Thank you for this patch.
> > >         >
> > >         > Please find my response inline marked [SAMI].
> > >         >
> > >         > Regards,
> > >         >
> > >         > Sami Mujawar
> > >         >
> > >         >
> > >         > On 02/03/2022 12:28 AM, Min Xu wrote:
> > >         > > RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3853
> > >         > >
> > >         > > TDVF set up an ACPI table (EFI_CC_EVENTLOG_ACPI_TABLE) to pass
> > the
> > >         > > event-log information. The event log created by the TD owner
> > contains
> > >         > > the hashes to reconstruct the MRTD and RTMR registers.
> > >         > >
> > >         > > Please refer to Sec 4.3.3 in blow link:
> > >         > >
> > > https://www.intel.com/content/dam/develop/external/us/en/documents/
> > >         > > intel-tdx-guest-hypervisor-communication-interface-1.0-344426-
> > > 002.pdf
> > >         > >
> > >         > > 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>
> > >         > > Signed-off-by: Min Xu <min.m.xu@intel.com>
> > >         > > ---
> > >         > >   MdePkg/Include/Protocol/CcMeasurement.h | 20
> > > ++++++++++++++++++++
> > >         > >   1 file changed, 20 insertions(+)
> > >         > >
> > >         > > diff --git a/MdePkg/Include/Protocol/CcMeasurement.h
> > >         > b/MdePkg/Include/Protocol/CcMeasurement.h
> > >         > > index 83eaafaf10a6..86de226c1d82 100644
> > >         > > --- a/MdePkg/Include/Protocol/CcMeasurement.h
> > >         > > +++ b/MdePkg/Include/Protocol/CcMeasurement.h
> > >         > > @@ -307,4 +307,24 @@ extern EFI_GUID
> > gEfiCcFinalEventsTableGuid;
> > >         > >
> > >         > >   extern EFI_GUID  gCcEventEntryHobGuid;
> > >         > >
> > >         > > +//
> > >         > > +// Define the CC Measure EventLog ACPI Table
> > >         > > +//
> > >         > > +#pragma pack(1)
> > >         > > +
> > >         > > +typedef struct {
> > >         > > +  EFI_ACPI_DESCRIPTION_HEADER    Header;
> > >         > > +  UINT32                         Rsvd;
> > >         > > +  UINT64                         Laml;
> > >         > > +  UINT64                         Lasa;
> > >         > > +} EFI_CC_EVENTLOG_ACPI_TABLE;
> > >         > > +
> > >         > > +#pragma pack()
> > >         > > +
> > >         > > +//
> > >         > > +// Define the signature and revision of CC Measurement EventLog
> > ACPI
> > > Table
> > >         > for Td guest
> > >         > > +//
> > >         > > +#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_SIGNATURE
> > > SIGNATURE_32('T',
> > >         > 'D', 'E', 'L')
> > >         > > +#define EFI_CC_EVENTLOG_ACPI_TABLE_TD_REVISION   1
> > >         > [SAMI] I can see that the above macros have the _TD_ infix. Is the
> > >         > intention here that each architecture shall define its own signature
> > and
> > >         > revision?
> > >         > Would it be possible to make the signature generic across
> > architectures,
> > >         > e.g. "SIGNATURE_32('C', 'C', 'E', 'L')" ?
> > >         > [/SAMI]
> > >         > > +
> > >         > >   #endif
> > >
> > >
> 
> 
> 
> 
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#87665): https://edk2.groups.io/g/devel/message/87665
Mute This Topic: https://groups.io/mt/89491522/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-