From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web09.2274.1646180902366421497 for ; Tue, 01 Mar 2022 16:28:28 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=GEI5nfFc; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: min.m.xu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1646180908; x=1677716908; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=WnftyZ8wBZxsldU9kKlwpUaBaNwdYBWVkAQ+U6rUhFg=; b=GEI5nfFcs1fbfVgKRUb9iIdbOsklRFSznheFhZ8POOM4zPLO44lX8vu5 ZIracnQXXluzV0dvgbgfjsYALny7H+Dsx8o7PnAa50FLMJIr8Gwms7DP/ ty0MPIAcg5i/SgZQQCN6hZ4Mv7GXP1XBLhHNzIayBoqLaGmpIur5OTljv vChJSiddifNs7pqr5tqfZHzwGgt7gJICTZxpc535Ouv3wod3wfY6NY2Do tGMUoPHbEIOkRlw47fyEdIPikhEyPUG0p0h6kZgmaJtGV1GyhfF5L/HA+ +DQlrcujnO/U87JxS/uzKJunWmzE4kN2XefH1We5V80pz3rVkJviIhFNR A==; X-IronPort-AV: E=McAfee;i="6200,9189,10273"; a="253006557" X-IronPort-AV: E=Sophos;i="5.90,146,1643702400"; d="scan'208";a="253006557" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 16:28:27 -0800 X-IronPort-AV: E=Sophos;i="5.90,146,1643702400"; d="scan'208";a="641482183" Received: from mxu9-mobl1.ccr.corp.intel.com ([10.238.2.184]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Mar 2022 16:28:25 -0800 From: "Min Xu" To: devel@edk2.groups.io Cc: Min Xu , Michael D Kinney , Liming Gao , Zhiguang Liu , Gerd Hoffmann , Jiewen Yao , Sami Mujawar Subject: [PATCH 3/8] MdePkg: Add definition of EFI_CC_EVENT_HOB_GUID Date: Wed, 2 Mar 2022 08:28:02 +0800 Message-Id: <20220302002807.982-4-min.m.xu@intel.com> X-Mailer: git-send-email 2.29.2.windows.2 In-Reply-To: <20220302002807.982-1-min.m.xu@intel.com> References: <20220302002807.982-1-min.m.xu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Cc: Liming Gao Cc: Zhiguang Liu Cc: Gerd Hoffmann Cc: Jiewen Yao Cc: Sami Mujawar Signed-off-by: Min Xu --- 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