From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mx.groups.io with SMTP id smtpd.web11.11525.1635419379554962651 for ; Thu, 28 Oct 2021 04:09:39 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=d9cCwwU/; spf=pass (domain: redhat.com, ip: 170.10.129.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1635419377; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=02dEu1NHpFXCSh+cnkFjSFZKJBRU1IBlM9XNQ1TIXMM=; b=d9cCwwU/c58wqc5/WURj704Jtwp61i58E6DRPzV74uzO0gIjKmtCx1TNyiGtZKWeC27Jx9 O4jYAalpuskCy6K1KBUcKJtLkS3LGcFFzTFLdcwSoEu5r6cu2Xbm4Ixim9RDX8Lu4SxwjX fpiTJLEbT+BVWXTszKVfIyDmmdfyWDw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-39-Rao1v45QP_a8toGTbjNARg-1; Thu, 28 Oct 2021 07:09:32 -0400 X-MC-Unique: Rao1v45QP_a8toGTbjNARg-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C682319200C0; Thu, 28 Oct 2021 11:09:30 +0000 (UTC) Received: from sirius.home.kraxel.org (ovpn-112-241.phx2.redhat.com [10.3.112.241]) by smtp.corp.redhat.com (Postfix) with ESMTPS id F41B460C04; Thu, 28 Oct 2021 11:09:22 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 126891800393; Thu, 28 Oct 2021 13:09:21 +0200 (CEST) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Jiewen Yao , Jordan Justen , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , Min Xu , Tom Lendacky , Stefan Berger , Gerd Hoffmann , Ard Biesheuvel , Erdem Aktas , Brijesh Singh , James Bottomley Subject: [PATCH v3 0/5] OvmfPkg: rework TPM configuration. Date: Thu, 28 Oct 2021 13:09:16 +0200 Message-Id: <20211028110921.819113-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=kraxel@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Allows to enable/disable TPM 1.2 support in OVMF. Allows to enable SHA-1 support for TPM hashing. v3: - drop config menu for tpm 1.2 (needs other fixes first) - update some places missed. - add microvm cleanup. - add review/test tags. v2: - drop TPM_CONFIG_ENABLE config option. - don't add SHA1 config option. - add config menu for tpm 1.2 Gerd Hoffmann (5): OvmfPkg: remove unused TPM options from MicrovmX64.dsc OvmfPkg: move tcg configuration to dsc and fdf include files OvmfPkg: drop TPM_CONFIG_ENABLE OvmfPkg: create Tcg12ConfigPei.inf OvmfPkg: rework TPM configuration OvmfPkg/OvmfTpmComponentsDxe.dsc.inc | 28 ++++++ OvmfPkg/OvmfTpmComponentsPei.dsc.inc | 26 ++++++ OvmfPkg/OvmfTpmDefines.dsc.inc | 8 ++ OvmfPkg/OvmfTpmLibs.dsc.inc | 16 ++++ OvmfPkg/OvmfTpmLibsDxe.dsc.inc | 10 +++ OvmfPkg/OvmfTpmLibsPeim.dsc.inc | 11 +++ OvmfPkg/OvmfTpmPcds.dsc.inc | 7 ++ OvmfPkg/OvmfTpmPcdsHii.dsc.inc | 8 ++ OvmfPkg/OvmfTpmSecurityStub.dsc.inc | 10 +++ OvmfPkg/AmdSev/AmdSevX64.dsc | 85 +++--------------- OvmfPkg/Microvm/MicrovmX64.dsc | 2 - OvmfPkg/OvmfPkgIa32.dsc | 88 +++---------------- OvmfPkg/OvmfPkgIa32X64.dsc | 85 +++--------------- OvmfPkg/OvmfPkgX64.dsc | 85 +++--------------- OvmfPkg/AmdSev/AmdSevX64.fdf | 17 +--- OvmfPkg/OvmfPkgIa32.fdf | 17 +--- OvmfPkg/OvmfPkgIa32X64.fdf | 17 +--- OvmfPkg/OvmfPkgX64.fdf | 17 +--- .../{Tcg2ConfigPei.inf => Tcg12ConfigPei.inf} | 11 +-- OvmfPkg/Tcg/Tcg2Config/Tcg2ConfigPei.inf | 11 +-- OvmfPkg/OvmfTpmDxe.fdf.inc | 12 +++ OvmfPkg/OvmfTpmPei.fdf.inc | 15 ++++ .../.azurepipelines/Ubuntu-GCC5.yml | 6 +- .../.azurepipelines/Windows-VS2019.yml | 6 +- OvmfPkg/PlatformCI/ReadMe.md | 2 +- 25 files changed, 213 insertions(+), 387 deletions(-) create mode 100644 OvmfPkg/OvmfTpmComponentsDxe.dsc.inc create mode 100644 OvmfPkg/OvmfTpmComponentsPei.dsc.inc create mode 100644 OvmfPkg/OvmfTpmDefines.dsc.inc create mode 100644 OvmfPkg/OvmfTpmLibs.dsc.inc create mode 100644 OvmfPkg/OvmfTpmLibsDxe.dsc.inc create mode 100644 OvmfPkg/OvmfTpmLibsPeim.dsc.inc create mode 100644 OvmfPkg/OvmfTpmPcds.dsc.inc create mode 100644 OvmfPkg/OvmfTpmPcdsHii.dsc.inc create mode 100644 OvmfPkg/OvmfTpmSecurityStub.dsc.inc copy OvmfPkg/Tcg/Tcg2Config/{Tcg2ConfigPei.inf => Tcg12ConfigPei.inf} (82%) create mode 100644 OvmfPkg/OvmfTpmDxe.fdf.inc create mode 100644 OvmfPkg/OvmfTpmPei.fdf.inc -- 2.31.1