From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.34422.1650240016423357250 for ; Sun, 17 Apr 2022 17:00:28 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=DunK5goh; spf=pass (domain: intel.com, ip: 192.55.52.43, 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=1650240028; x=1681776028; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=GtqV2hf1/veX0hkc4dDwRAWIfcqLaiZx8s0yUQWqWWA=; b=DunK5gohB7RSpUPocTGAVmpilxkpTsYoPI99n7gL4QmOkEmU1yS81z77 VwAjn53KwVRJ+yFuKNDyIoLUmgFPbJmp37fA0yPCWJxY2TNtx2SnqI3bn eH+ieFjziz0kx15CVVatVjG8SrQxke1SkPjkQmXFAm8k+SDEH+d6cqF7p PW1jJbSd6t7Z9gNbTv7jk18wQkcncwn5I33PzSUXx+abrNTDUYvhlRYQN 9KgEPkZ9gOGzZ6p6dksjO71b07kwzYuqjUzH+kucLR23c2I8/dZ8BKjAg KZgSafqsREvcUoHWkvPaPY+poQg9Tz/SHiS6NjJdzyOJWDRv7vkSer/8f w==; X-IronPort-AV: E=McAfee;i="6400,9594,10320"; a="349872524" X-IronPort-AV: E=Sophos;i="5.90,267,1643702400"; d="scan'208";a="349872524" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2022 17:00:27 -0700 X-IronPort-AV: E=Sophos;i="5.90,267,1643702400"; d="scan'208";a="575329459" Received: from cuixin-mobl.ccr.corp.intel.com (HELO mxu9-mobl1.ccr.corp.intel.com) ([10.249.170.67]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Apr 2022 17:00:25 -0700 From: "Min Xu" To: devel@edk2.groups.io Cc: Min Xu , Michael D Kinney , Liming Gao , Zhiguang Liu , Jiewen Yao , Jian J Wang , Ken Lu , Sami Mujawar , Gerd Hoffmann Subject: [PATCH V3 7/9] MdePkg: Define CC Measure EventLog ACPI Table Date: Mon, 18 Apr 2022 07:59:58 +0800 Message-Id: X-Mailer: git-send-email 2.29.2.windows.2 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 Please be noted, the definition of EFI_CC_EVENTLOG_ACPI_TABLE is a little different from the above document. This difference is based on below discussion: - https://edk2.groups.io/g/devel/message/87396 - https://edk2.groups.io/g/devel/message/87402 This change will be reflected in the next version of the above document. Cc: Michael D Kinney Cc: Liming Gao Cc: Zhiguang Liu Cc: Jiewen Yao Cc: Jian J Wang Cc: Ken Lu Cc: Sami Mujawar Cc: Gerd Hoffmann Reviewed-by: Liming Gao Reviewed-by: Jiewen Yao Signed-off-by: Min Xu --- MdePkg/Include/Protocol/CcMeasurement.h | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/MdePkg/Include/Protocol/CcMeasurement.h b/MdePkg/Include/Protocol/CcMeasurement.h index 68029e977fac..58123ca72163 100644 --- a/MdePkg/Include/Protocol/CcMeasurement.h +++ b/MdePkg/Include/Protocol/CcMeasurement.h @@ -299,4 +299,25 @@ typedef struct { extern EFI_GUID gEfiCcFinalEventsTableGuid; +// +// Define the CC Measure EventLog ACPI Table +// +#pragma pack(1) + +typedef struct { + EFI_ACPI_DESCRIPTION_HEADER Header; + EFI_CC_TYPE CcType; + UINT32 Rsvd; + UINT64 Laml; + UINT64 Lasa; +} EFI_CC_EVENTLOG_ACPI_TABLE; + +#pragma pack() + +// +// Define the signature and revision of CC Measurement EventLog ACPI Table +// +#define EFI_CC_EVENTLOG_ACPI_TABLE_SIGNATURE SIGNATURE_32('C', 'C', 'E', 'L') +#define EFI_CC_EVENTLOG_ACPI_TABLE_REVISION 1 + #endif -- 2.29.2.windows.2