[edk2-devel] [PATCH 3/8] MdePkg: Add definition of EFI_CC_EVENT_HOB_GUID

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

EFI_CC_EVENT_HOB_GUID is the global ID of a GUIDed HOB used to pass
TDX_DIGEST_VALUE from SEC to a DXE Driver ( This DXE driver will
be introduced in the following commit in this patch-sets ). In that
DXE driver this GUIDed HOB will be parsed and the TDX_DIGEST_VALUE
then will be extracted. After that a EFI_CC_EVENT will be created
based on it.

Cc: Michael D Kinney <michael.d.kinney@intel.com>
Cc: Liming Gao <gaoliming@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang.liu@intel.com>
Cc: Gerd Hoffmann <kraxel@redhat.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Sami Mujawar <sami.mujawar@arm.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
---
 MdePkg/Include/Protocol/CcMeasurement.h | 8 ++++++++
 MdePkg/MdePkg.dec                       | 1 +
 2 files changed, 9 insertions(+)

diff --git a/MdePkg/Include/Protocol/CcMeasurement.h b/MdePkg/Include/Protocol/CcMeasurement.h
index 68029e977fac..83eaafaf10a6 100644
--- a/MdePkg/Include/Protocol/CcMeasurement.h
+++ b/MdePkg/Include/Protocol/CcMeasurement.h
@@ -299,4 +299,12 @@ typedef struct {
 
 extern EFI_GUID  gEfiCcFinalEventsTableGuid;
 
+//
+// The Global ID of a GUIDed HOB used to pass a CC_EVENT from a SEC to a TDX DXE Driver.
+//
+#define EFI_CC_EVENT_HOB_GUID \
+  { 0x20f8fd36, 0x6d00, 0x40fb, { 0xb7, 0x04, 0xd1, 0x2c, 0x15, 0x3c, 0x62, 0xeb } }
+
+extern EFI_GUID  gCcEventEntryHobGuid;
+
 #endif
diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec
index 1934c9840423..38f01c162e97 100644
--- a/MdePkg/MdePkg.dec
+++ b/MdePkg/MdePkg.dec
@@ -828,6 +828,7 @@
 
   ## Include/Protocol/CcMeasurement.h
   gEfiCcFinalEventsTableGuid     = { 0xdd4a4648, 0x2de7, 0x4665, { 0x96, 0x4d, 0x21, 0xd9, 0xef, 0x5f, 0xb4, 0x46 }}
+  gCcEventEntryHobGuid           = { 0x20f8fd36, 0x6d00, 0x40fb, { 0xb7, 0x04, 0xd1, 0x2c, 0x15, 0x3c, 0x62, 0xeb }}
 
 [Guids.IA32, Guids.X64]
   ## Include/Guid/Cper.h
-- 
2.29.2.windows.2



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#87171): https://edk2.groups.io/g/devel/message/87171
Mute This Topic: https://groups.io/mt/89491515/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
[edk2-devel] 回复: [PATCH 3/8] MdePkg: Add definition of EFI_CC_EVENT_HOB_GUID
Posted by gaoliming 3 years, 11 months ago
Min:
  Is this GUID from
intel-tdx-guest-hypervisor-communication-interface-1.0-344426-002.pdf? 

Thanks
Liming
> -----邮件原件-----
> 发件人: Min Xu <min.m.xu@intel.com>
> 发送时间: 2022年3月2日 8:28
> 收件人: devel@edk2.groups.io
> 抄送: Min Xu <min.m.xu@intel.com>; Michael D Kinney
> <michael.d.kinney@intel.com>; Liming Gao <gaoliming@byosoft.com.cn>;
> Zhiguang Liu <zhiguang.liu@intel.com>; Gerd Hoffmann <kraxel@redhat.com>;
> Jiewen Yao <jiewen.yao@intel.com>; Sami Mujawar
> <sami.mujawar@arm.com>
> 主题: [PATCH 3/8] MdePkg: Add definition of EFI_CC_EVENT_HOB_GUID
> 
> RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3853
> 
> EFI_CC_EVENT_HOB_GUID is the global ID of a GUIDed HOB used to pass
> TDX_DIGEST_VALUE from SEC to a DXE Driver ( This DXE driver will
> be introduced in the following commit in this patch-sets ). In that
> DXE driver this GUIDed HOB will be parsed and the TDX_DIGEST_VALUE
> then will be extracted. After that a EFI_CC_EVENT will be created
> based on it.
> 
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Liming Gao <gaoliming@byosoft.com.cn>
> Cc: Zhiguang Liu <zhiguang.liu@intel.com>
> Cc: Gerd Hoffmann <kraxel@redhat.com>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Sami Mujawar <sami.mujawar@arm.com>
> Signed-off-by: Min Xu <min.m.xu@intel.com>
> ---
>  MdePkg/Include/Protocol/CcMeasurement.h | 8 ++++++++
>  MdePkg/MdePkg.dec                       | 1 +
>  2 files changed, 9 insertions(+)
> 
> diff --git a/MdePkg/Include/Protocol/CcMeasurement.h
> b/MdePkg/Include/Protocol/CcMeasurement.h
> index 68029e977fac..83eaafaf10a6 100644
> --- a/MdePkg/Include/Protocol/CcMeasurement.h
> +++ b/MdePkg/Include/Protocol/CcMeasurement.h
> @@ -299,4 +299,12 @@ typedef struct {
> 
>  extern EFI_GUID  gEfiCcFinalEventsTableGuid;
> 
> +//
> +// The Global ID of a GUIDed HOB used to pass a CC_EVENT from a SEC to a
> TDX DXE Driver.
> +//
> +#define EFI_CC_EVENT_HOB_GUID \
> +  { 0x20f8fd36, 0x6d00, 0x40fb, { 0xb7, 0x04, 0xd1, 0x2c, 0x15, 0x3c,
0x62,
> 0xeb } }
> +
> +extern EFI_GUID  gCcEventEntryHobGuid;
> +
>  #endif
> diff --git a/MdePkg/MdePkg.dec b/MdePkg/MdePkg.dec
> index 1934c9840423..38f01c162e97 100644
> --- a/MdePkg/MdePkg.dec
> +++ b/MdePkg/MdePkg.dec
> @@ -828,6 +828,7 @@
> 
>    ## Include/Protocol/CcMeasurement.h
>    gEfiCcFinalEventsTableGuid     = { 0xdd4a4648, 0x2de7, 0x4665, { 0x96,
> 0x4d, 0x21, 0xd9, 0xef, 0x5f, 0xb4, 0x46 }}
> +  gCcEventEntryHobGuid           = { 0x20f8fd36, 0x6d00, 0x40fb,
> { 0xb7, 0x04, 0xd1, 0x2c, 0x15, 0x3c, 0x62, 0xeb }}
> 
>  [Guids.IA32, Guids.X64]
>    ## Include/Guid/Cper.h
> --
> 2.29.2.windows.2





-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#87182): https://edk2.groups.io/g/devel/message/87182
Mute This Topic: https://groups.io/mt/89492913/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] 回复: [PATCH 3/8] MdePkg: Add definition of EFI_CC_EVENT_HOB_GUID
Posted by Min Xu 3 years, 11 months ago
On March 2, 2022 9:53 AM, Gao Liming wrote:
> Min:
>   Is this GUID from
> intel-tdx-guest-hypervisor-communication-interface-1.0-344426-002.pdf?
> 
> > EFI_CC_EVENT_HOB_GUID is the global ID of a GUIDed HOB used to pass
> > TDX_DIGEST_VALUE from SEC to a DXE Driver ( This DXE driver will be
> > introduced in the following commit in this patch-sets ). In that DXE
> > driver this GUIDed HOB will be parsed and the TDX_DIGEST_VALUE then
> > will be extracted. After that a EFI_CC_EVENT will be created based on
> > it.
Liming
EFI_CC_EVENT_HOB_GUID is not defined in the GHCI spec. It is used internally by edk2. I will move its definition to SecurityPkg.

Thanks
Min


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