From nobody Tue Feb 10 03:40:35 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) client-ip=66.175.222.12; envelope-from=bounce+27952+53022+1787277+3901457@groups.io; helo=web01.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+53022+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1578494428; cv=none; d=zohomail.com; s=zohoarc; b=OrDCNUiuzM6gJAxBSY4GTrLbzSDTJdTiTnTVXajkkKEldNtVXgp6/2IrYZG6R+/c3KINblF3RH9bJBgWmMb96K3BVqYAmH5ZekpeugTHmAQFioYYfZMLhd/sDEVbWK8yVJNVvE10JacNac5CbJ9w+YUoC+mCiQqeXSkCZClp/C8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1578494428; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Id:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=NxaOVLBGlHcVsPkN6+9pP9N7NlACNCQF73vPfMF4xVM=; b=d/+4SCdI3FcwMSUcXPIhNZxXt/wpoFAh1Io8+RXeHObGQqUP68laTjvnA2rJlASDJcxN7aM3yFuc93Z3Zvlk7SVN83dlNYsak2gFaHone0dhZkrK+YkNaksVqI/3CDaO800KBORVgebUCzE4j35zSbVYEOiqIShqhrz5QSLkSgo= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.12 as permitted sender) smtp.mailfrom=bounce+27952+53022+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) header.from= Received: from web01.groups.io (web01.groups.io [66.175.222.12]) by mx.zohomail.com with SMTPS id 1578494428319962.31004816955; Wed, 8 Jan 2020 06:40:28 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id FqqQYY1788612xW9aXzHdi41; Wed, 08 Jan 2020 06:40:27 -0800 X-Received: from mail-wm1-f67.google.com (mail-wm1-f67.google.com [209.85.128.67]) by mx.groups.io with SMTP id smtpd.web09.8623.1578494332546111883 for ; Wed, 08 Jan 2020 06:38:55 -0800 X-Received: by mail-wm1-f67.google.com with SMTP id q9so2711536wmj.5 for ; Wed, 08 Jan 2020 06:38:52 -0800 (PST) X-Gm-Message-State: T8ZdfihyX7SvmH7U6HEt2Yqtx1787277AA= X-Google-Smtp-Source: APXvYqxoEcU48iEPPYAhU7RCfAmpqTuyGkO/yTFBqVKS65UguEKMW+3O9kOXwe/5Cf5bWaLWfW8oFw== X-Received: by 2002:a1c:1f56:: with SMTP id f83mr4346977wmf.93.1578494330805; Wed, 08 Jan 2020 06:38:50 -0800 (PST) X-Received: from localhost.localdomain ([2a01:cb1d:112:6f00:30ac:cba9:9f83:e5db]) by smtp.gmail.com with ESMTPSA id r15sm3934848wmh.21.2020.01.08.06.38.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 06:38:49 -0800 (PST) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: philmd@redhat.com, lersek@redhat.com, Ard Biesheuvel Subject: [edk2-devel] [PATCH 2/2] OvmfPkg: use HII type PCDs for TPM2 config related variables Date: Wed, 8 Jan 2020 15:38:43 +0100 Message-Id: <20200108143843.4198-3-ard.biesheuvel@linaro.org> In-Reply-To: <20200108143843.4198-1-ard.biesheuvel@linaro.org> References: <20200108143843.4198-1-ard.biesheuvel@linaro.org> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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,ard.biesheuvel@linaro.org Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1578494427; bh=d8AeKl+cnae4aWWGkDhiPWFzXvLjkoRhTzxSreKx7co=; h=Cc:Date:From:Reply-To:Subject:To; b=slCEMK6lx1o25GsgZfbaVMyjnzi3bTO7Dj6ZFg/buiFSPg6dhnTPXozToUXcbMHpL3c 3t8y/7nFSTmlmXTaAAk12EC3RqJpX7Dw+shGAgLuIl7QNYcuI64ClieWedWNMqXL14CYm D4sYfJ2/9MJi/LLmSWyvmzNhl7W8SE9MqJc= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" The HII pages that are part of Tcg2ConfigDxe expect the following PCDs to be of dynamic HII type, so declare them as such. gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev Currently, the TPM2 ACPI table is not produced, since we do not incorporate the Tcg2Smm module, which implements the SMI based physical presence interface exposed to the OS. Signed-off-by: Ard Biesheuvel Reviewed-by: Laszlo Ersek --- OvmfPkg/OvmfPkgIa32.dsc | 6 ++++++ OvmfPkg/OvmfPkgIa32X64.dsc | 6 ++++++ OvmfPkg/OvmfPkgX64.dsc | 6 ++++++ 3 files changed, 18 insertions(+) diff --git a/OvmfPkg/OvmfPkgIa32.dsc b/OvmfPkg/OvmfPkgIa32.dsc index f9e0b4b5bc54..408da4cc19ac 100644 --- a/OvmfPkg/OvmfPkgIa32.dsc +++ b/OvmfPkg/OvmfPkgIa32.dsc @@ -575,6 +575,12 @@ [PcdsDynamicDefault] gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00= , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} !endif =20 +[PcdsDynamicHii] +!if $(TPM2_CONFIG_ENABLE) =3D=3D TRUE + gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_= VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS + gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2C= onfigFormSetGuid|0x8|3|NV,BS +!endif + ##########################################################################= ###### # # Components Section - list of all EDK II Modules needed by this Platform. diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc index ee83bbaa5379..1ec94010c215 100644 --- a/OvmfPkg/OvmfPkgIa32X64.dsc +++ b/OvmfPkg/OvmfPkgIa32X64.dsc @@ -587,6 +587,12 @@ [PcdsDynamicDefault] gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00= , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} !endif =20 +[PcdsDynamicHii] +!if $(TPM2_CONFIG_ENABLE) =3D=3D TRUE + gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_= VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS + gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2C= onfigFormSetGuid|0x8|3|NV,BS +!endif + ##########################################################################= ###### # # Components Section - list of all EDK II Modules needed by this Platform. diff --git a/OvmfPkg/OvmfPkgX64.dsc b/OvmfPkg/OvmfPkgX64.dsc index 2b6106ff313f..058ab00e69c6 100644 --- a/OvmfPkg/OvmfPkgX64.dsc +++ b/OvmfPkg/OvmfPkgX64.dsc @@ -586,6 +586,12 @@ [PcdsDynamicDefault] gEfiSecurityPkgTokenSpaceGuid.PcdTpmInstanceGuid|{0x00, 0x00, 0x00, 0x00= , 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00} !endif =20 +[PcdsDynamicHii] +!if $(TPM2_CONFIG_ENABLE) =3D=3D TRUE + gEfiSecurityPkgTokenSpaceGuid.PcdTcgPhysicalPresenceInterfaceVer|L"TCG2_= VERSION"|gTcg2ConfigFormSetGuid|0x0|"1.3"|NV,BS + gEfiSecurityPkgTokenSpaceGuid.PcdTpm2AcpiTableRev|L"TCG2_VERSION"|gTcg2C= onfigFormSetGuid|0x8|3|NV,BS +!endif + ##########################################################################= ###### # # Components Section - list of all EDK II Modules needed by this Platform. --=20 2.20.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 (#53022): https://edk2.groups.io/g/devel/message/53022 Mute This Topic: https://groups.io/mt/69529190/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-