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.133.124]) by mx.groups.io with SMTP id smtpd.web10.10635.1678360186317916914 for ; Thu, 09 Mar 2023 03:09:46 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LRmtogJ9; spf=pass (domain: redhat.com, ip: 170.10.133.124, mailfrom: kraxel@redhat.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1678360184; 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=GjB8sdigW6e7PeBa185CtDj0vtcFka/3tOEOZf7gR7A=; b=LRmtogJ9p5E98plpjqdv1INnjQ3jboG0xgpgL0fP3D43o06ce4i4JQcqsza4/rIcst1zyg 29jlW5IjuP1q1+qx4MEojei0oHuh8jZlMB0gSy6iqNyiBk/2kL8nfbmnyv+q2R8mJxrwKX HRNAqi97UhdCx02Es5WWoq6o1UGuZ38= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-274-3mdC4W6KN0ygLGONsT2bDw-1; Thu, 09 Mar 2023 06:09:41 -0500 X-MC-Unique: 3mdC4W6KN0ygLGONsT2bDw-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com [10.11.54.7]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 440543C10149; Thu, 9 Mar 2023 11:09:41 +0000 (UTC) Received: from sirius.home.kraxel.org (unknown [10.39.192.39]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A056C1410DD9; Thu, 9 Mar 2023 11:09:40 +0000 (UTC) Received: by sirius.home.kraxel.org (Postfix, from userid 1000) id 289AA1800082; Thu, 9 Mar 2023 12:09:34 +0100 (CET) From: "Gerd Hoffmann" To: devel@edk2.groups.io Cc: Pawel Polawski , Guomin Jiang , Jordan Justen , Jian J Wang , James Bottomley , Gerd Hoffmann , Oliver Steffen , Erdem Aktas , Min Xu , Xiaoyu Lu , Jiewen Yao , Ard Biesheuvel , Michael Roth , Tom Lendacky Subject: [PATCH v3 00/11] OvmfPkg: add Crypto Driver support Date: Thu, 9 Mar 2023 12:09:23 +0100 Message-Id: <20230309110934.853991-1-kraxel@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.7 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit v3 changes: - rebase to latest master. - enable crypto driver only for SMM + DXE. - CI passes now \o/ v2 changes: - turn on crypto driver support by default. - left the config option in for now as fallback option. When all goes as planned remove it one or two releases later. - fix various build problems. Gerd Hoffmann (11): CryptoPkg/Driver: move PCD configs to include files CryptoPkg/Driver: add CryptoServicePcd.hash_only.dsc.inc CryptoPkg/Driver: add TPM hashes to CryptoServicePcd.min_dxe_smm.dsc.inc BaseTools: GCC5: enable lto for noopt builds on IA32 and X64 OvmfPkg: add OvmfCrypto*.inc OvmfPkg: OvmfPkgX64: use crypto includes OvmfPkg: OvmfPkgIa32X64: use crypto includes OvmfPkg: OvmfPkgIa32: use crypto includes OvmfPkg: Microvm: use crypto includes OvmfPkg: IntelTdx: use crypto includes OvmfPkg: AmdSev: use crypto includes .../Include/Dsc/CryptoServicePcd.all.dsc.inc | 29 +++++++ .../Dsc/CryptoServicePcd.hash_only.dsc.inc | 8 ++ .../Dsc/CryptoServicePcd.min_dxe_smm.dsc.inc | 37 +++++++++ .../Dsc/CryptoServicePcd.min_pei.dsc.inc | 20 +++++ .../Dsc/OvmfCryptoComponentsDxe.dsc.inc | 23 ++++++ .../Dsc/OvmfCryptoComponentsPei.dsc.inc | 19 +++++ .../Dsc/OvmfCryptoComponentsSmm.dsc.inc | 18 +++++ OvmfPkg/Include/Dsc/OvmfCryptoDefines.dsc.inc | 7 ++ OvmfPkg/Include/Dsc/OvmfCryptoLibs.dsc.inc | 72 +++++++++++++++++ CryptoPkg/CryptoPkg.dsc | 78 +------------------ OvmfPkg/AmdSev/AmdSevX64.dsc | 12 ++- OvmfPkg/IntelTdx/IntelTdxX64.dsc | 15 ++-- OvmfPkg/Microvm/MicrovmX64.dsc | 24 +++--- OvmfPkg/OvmfPkgIa32.dsc | 22 +++--- OvmfPkg/OvmfPkgIa32X64.dsc | 22 +++--- OvmfPkg/OvmfPkgX64.dsc | 22 +++--- OvmfPkg/AmdSev/AmdSevX64.fdf | 6 ++ OvmfPkg/IntelTdx/IntelTdxX64.fdf | 5 ++ OvmfPkg/Microvm/MicrovmX64.fdf | 7 ++ OvmfPkg/OvmfPkgIa32.fdf | 6 ++ OvmfPkg/OvmfPkgIa32X64.fdf | 6 ++ OvmfPkg/OvmfPkgX64.fdf | 6 ++ BaseTools/Conf/tools_def.template | 8 +- OvmfPkg/Include/Fdf/OvmfCryptoDxeSmm.fdf.inc | 12 +++ OvmfPkg/Include/Fdf/OvmfCryptoPei.fdf.inc | 7 ++ 25 files changed, 350 insertions(+), 141 deletions(-) create mode 100644 CryptoPkg/Include/Dsc/CryptoServicePcd.all.dsc.inc create mode 100644 CryptoPkg/Include/Dsc/CryptoServicePcd.hash_only.dsc.inc create mode 100644 CryptoPkg/Include/Dsc/CryptoServicePcd.min_dxe_smm.dsc.inc create mode 100644 CryptoPkg/Include/Dsc/CryptoServicePcd.min_pei.dsc.inc create mode 100644 OvmfPkg/Include/Dsc/OvmfCryptoComponentsDxe.dsc.inc create mode 100644 OvmfPkg/Include/Dsc/OvmfCryptoComponentsPei.dsc.inc create mode 100644 OvmfPkg/Include/Dsc/OvmfCryptoComponentsSmm.dsc.inc create mode 100644 OvmfPkg/Include/Dsc/OvmfCryptoDefines.dsc.inc create mode 100644 OvmfPkg/Include/Dsc/OvmfCryptoLibs.dsc.inc create mode 100644 OvmfPkg/Include/Fdf/OvmfCryptoDxeSmm.fdf.inc create mode 100644 OvmfPkg/Include/Fdf/OvmfCryptoPei.fdf.inc -- 2.39.2