From nobody Mon Feb 9 23:58:10 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+55011+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+55011+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1582814472; cv=none; d=zohomail.com; s=zohoarc; b=kGVegxM17AlKDTH+L8W0Gjpjx7/6SXvzxOVEJorKQRmloA6+3Pm9+MdCu1YBEMLDTGs712PlUuAEuYimCuV1CSNDH29eUN12ChJp/DlZ8JltK3lXbw6XQJW1q+rC9J4WtOzv55oIUjhisjR3szv9VBtXdlj90svaKQzit672M3c= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582814472; 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=SKeZoAABsXKHmoaKhygyFuNfWPEZOY2YGJJkPyVRMAs=; b=KzALfk1MvP/Radg/lXnik8mqH2jW4b63rsINbLllCu32/fi1kvRsEt3r2/dU6fDShTIj5zY0skbXqBl4A/10gnqg8ViO8JDeTxzqmHJuiZwalobKCS1oBC1fq+6A6fR/P6ViR+ae0GtldhsMvTwmaJqvTZNU5/qQzlemI2KkutQ= 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+55011+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 1582814472914331.976269955101; Thu, 27 Feb 2020 06:41:12 -0800 (PST) Return-Path: X-Received: by 127.0.0.2 with SMTP id WDwcYY1788612xGu63DBiAK6; Thu, 27 Feb 2020 06:41:11 -0800 X-Received: from mail-wm1-f65.google.com (mail-wm1-f65.google.com [209.85.128.65]) by mx.groups.io with SMTP id smtpd.web11.4841.1582814470630124893 for ; Thu, 27 Feb 2020 06:41:10 -0800 X-Received: by mail-wm1-f65.google.com with SMTP id z12so3841033wmi.4 for ; Thu, 27 Feb 2020 06:41:10 -0800 (PST) X-Gm-Message-State: sqLxQunvfWpd0kWoOaQhgwP0x1787277AA= X-Google-Smtp-Source: APXvYqze/7d6ugevIus52W3E0AziKJGRFE0NEfO+I59l4z5KNq5bmMGjQnWpYTkQ+ODBsABdQvLZDA== X-Received: by 2002:a1c:bb82:: with SMTP id l124mr5552703wmf.176.1582814468716; Thu, 27 Feb 2020 06:41:08 -0800 (PST) X-Received: from localhost.localdomain (aaubervilliers-682-1-29-142.w90-88.abo.wanadoo.fr. [90.88.192.142]) by smtp.gmail.com with ESMTPSA id k7sm8273575wrq.12.2020.02.27.06.41.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Feb 2020 06:41:07 -0800 (PST) From: "Ard Biesheuvel" To: devel@edk2.groups.io Cc: Ard Biesheuvel , lersek@redhat.com, eric.auger@redhat.com, philmd@redhat.com, marcandre.lureau@redhat.com, stefanb@linux.ibm.com, leif@nuviainc.com Subject: [edk2-devel] [PATCH v4 07/11] ArmVirtPkg; avoid DxeTpmMeasurementLib in shared .DSC Date: Thu, 27 Feb 2020 15:40:52 +0100 Message-Id: <20200227144056.56988-8-ard.biesheuvel@linaro.org> In-Reply-To: <20200227144056.56988-1-ard.biesheuvel@linaro.org> References: <20200227144056.56988-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=1582814471; bh=ErSGrFSL2hiheAxnpe0XS7099AI29KcJR7M+i0GuaNQ=; h=Cc:Date:From:Reply-To:Subject:To; b=DvZ+KZXq6sq3Fg8Hgnz2PZVsv+VL31yFWLo0lE3RZrl2bu3B9pFIz+eQXOVLej1bwKQ jK0SHwLSawrZPSrsjOck2TAkOQCBOYWGDQW6YSzbnnvgadEgn3W1RWswb5N1BMPGVp24D mEjTDP/MdCKhpjDWhEWQrhlf6u2F662Vbyk= X-ZohoMail-DKIM: pass (identity @groups.io) Content-Type: text/plain; charset="utf-8" DxeTpmMeasurementLib should only be used on platforms that implement measured boot, which we will do in a future patch, but only for ArmVirtQemu, as the remaining ones are fundamentally incompatible, given that they do not implement a PEI phase. So use TpmMeasurementLibNull as the default resolution for all ArmVirtPkg platforms, regardless of how they are built. This mirrors commit 1ec05b81e59f ("OvmfPkg: use DxeTpmMeasurementLib if and only if TPM2_ENABLE", 2019-07-04). Signed-off-by: Ard Biesheuvel Reviewed-by: Laszlo Ersek --- ArmVirtPkg/ArmVirt.dsc.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ArmVirtPkg/ArmVirt.dsc.inc b/ArmVirtPkg/ArmVirt.dsc.inc index 10037c938eb8..8f9617359607 100644 --- a/ArmVirtPkg/ArmVirt.dsc.inc +++ b/ArmVirtPkg/ArmVirt.dsc.inc @@ -165,15 +165,14 @@ [LibraryClasses.common] # Secure Boot dependencies # !if $(SECURE_BOOT_ENABLE) =3D=3D TRUE - TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTpmMeasure= mentLib.inf AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf =20 # re-use the UserPhysicalPresent() dummy implementation from the ovmf tr= ee PlatformSecureLib|OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf !else - TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurem= entLibNull.inf AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLib= Null.inf !endif + TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/TpmMeasurem= entLibNull.inf VarCheckLib|MdeModulePkg/Library/VarCheckLib/VarCheckLib.inf UefiBootManagerLib|MdeModulePkg/Library/UefiBootManagerLib/UefiBootManag= erLib.inf =20 --=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 (#55011): https://edk2.groups.io/g/devel/message/55011 Mute This Topic: https://groups.io/mt/71587892/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-