From nobody Mon Sep 16 19:00:46 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+104991+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+104991+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1684367795; cv=none; d=zohomail.com; s=zohoarc; b=I2q+CBH7VtuJ0avvAJht0gI055Z0QSipPNYxzZxLnALtq0AF2Y+rj3Qe2UfZ1Zm3J1aWx9+VMn9ywn9bOElqFAGk8CIcRpBLczkGQ7yEkVFMiEnHcfQiD5MByxELOf1R4rH70kHfBK9jgYHiaQ0Q75+iOKdPdFfEXExYVmss+lw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1684367795; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=TfKXNVF0Uwnkjjp63rDaqIw8D0g/WrNGFattkKz14+U=; b=RxdCdYt58UupLJXbso9wa5X0jiCdXiojR9dp79Zd2DvW1mNXoqtqOIvflX3y340HEl2M9ptMtpjbNzn1VbfDINvcAVWSJWJgH0HtCp/ZxyabeMPBAaj8R327gXksp9LHqpNsDi1myUcftDx9AuUa7bZcN+dKw8MY7CtFChkfDmg= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+104991+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1684367795086474.5759524783806; Wed, 17 May 2023 16:56:35 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id cAEtYY1788612xERCROXV5iR; Wed, 17 May 2023 16:56:34 -0700 X-Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web10.3199.1684367793145561615 for ; Wed, 17 May 2023 16:56:33 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10713"; a="332275966" X-IronPort-AV: E=Sophos;i="5.99,283,1677571200"; d="scan'208";a="332275966" X-Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2023 16:56:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10713"; a="876208861" X-IronPort-AV: E=Sophos;i="5.99,283,1677571200"; d="scan'208";a="876208861" X-Received: from slakkim-mobl.amr.corp.intel.com ([10.212.56.110]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2023 16:56:32 -0700 From: "Subash Lakkimsetti" To: devel@edk2.groups.io Cc: Subash Lakkimsetti , Zhiguang Liu , Ray Ni , Gua Guo Subject: [edk2-devel] [PATCH v2 1/6] MdeModulePkg: universal payload HOB for secure boot info Date: Wed, 17 May 2023 16:55:29 -0700 Message-Id: <7527317a88aea6c1e108712c230a14f5a4cfbf61.1684367408.git.subash.lakkimsetti@intel.com> In-Reply-To: References: MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,subash.lakkimsetti@intel.com X-Gm-Message-State: qnE3adTNc0yZ0IIYRuVHhV3sx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1684367794; bh=kWFmFOl5HHLxqfaFMCuMJboG97bif1grkE9RV7AZQsQ=; h=Cc:Date:From:Reply-To:Subject:To; b=XcD3rapt65pnLDgbZAtXVKY4OkZ1+XHe+a8WHiHrRWkv9YxaoRB1VC1FPvRsKi5cOoG 6jmpimx6gMWMf4Q/HNrW77bzi/gUP/FEhsIuWOstbO3877AXiprkz9nxd+T3Pwwo7ThCN dbhAojxUHZPNFzjCaFYE/iz41+5QJLf4Y2s= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1684367796863100005 Content-Type: text/plain; charset="utf-8" From: Subash Lakkimsetti Add the hob structure header for universal payload for secure boot and measure boot information from bootloaders. Universal payload spec definied at https://universalscalablefirmware.github.io/documentation/2_universal_paylo= ad.html Cc: Zhiguang Liu Cc: Ray Ni Cc: Gua Guo Signed-off-by: Subash Lakkimsetti --- .../UniversalPayload/SecureBootInfoGuid.h | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 MdeModulePkg/Include/UniversalPayload/SecureBootInfoGui= d.h diff --git a/MdeModulePkg/Include/UniversalPayload/SecureBootInfoGuid.h b/M= deModulePkg/Include/UniversalPayload/SecureBootInfoGuid.h new file mode 100644 index 0000000000..5f0f75eb3a --- /dev/null +++ b/MdeModulePkg/Include/UniversalPayload/SecureBootInfoGuid.h @@ -0,0 +1,37 @@ +/** @file + This file defines the hob structure for the Secure boot information. + + Copyright (c) 2023, Intel Corporation. All rights reserved.
+ SPDX-License-Identifier: BSD-2-Clause-Patent + +**/ + +#ifndef SECUREBOOT_INFO_GUID_H_ +#define SECUREBOOT_INFO_GUID_H_ + +#include + +/** + Secure Boot info Hob GUID +**/ +extern EFI_GUID gUniversalPayloadSecureBootInfoGuid; + +#define PAYLOAD_SECUREBOOT_INFO_HOB_REVISION 0x1 + +#define NO_TPM 0x0 +#define TPM_TYPE_12 0x1 +#define TPM_TYPE_20 0x2 + +#pragma pack(1) +typedef struct { + UNIVERSAL_PAYLOAD_GENERIC_HEADER Header; + UINT8 VerifiedBootEnabled; + UINT8 MeasuredBootEnabled; + UINT8 FirmwareDebuggerInitialized; + UINT8 TpmType; + UINT8 Reserved[3]; + UINT32 TpmPcrActivePcrBanks; +} UNIVERSAL_SECURE_BOOT_INFO; +#pragma pack() + +#endif // SECUREBOOT_INFO_GUID_H_ --=20 2.39.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#104991): https://edk2.groups.io/g/devel/message/104991 Mute This Topic: https://groups.io/mt/98982069/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-