From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx0a-002e3701.pphosted.com (mx0a-002e3701.pphosted.com [148.163.147.86]) by mx.groups.io with SMTP id smtpd.web09.2551.1625111492371577433 for ; Wed, 30 Jun 2021 20:51:32 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@hpe.com header.s=pps0720 header.b=B+CPnq0T; spf=permerror, err=parse error for token &{10 18 %{ir}.%{v}.%{d}.spf.has.pphosted.com}: invalid domain name (domain: hpe.com, ip: 148.163.147.86, mailfrom: prvs=0816836a41=abner.chang@hpe.com) Received: from pps.filterd (m0150242.ppops.net [127.0.0.1]) by mx0a-002e3701.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 1613nHWD003929; Thu, 1 Jul 2021 03:51:00 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hpe.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pps0720; bh=Qji3kPCBHoBIJ/e4N9rgiJle/DQTiRTal9DVqtw1/G8=; b=B+CPnq0TVj+gYyrtZ3Y94DmG9sxn/e3UvH8XhajHz9ivBG1/VD883GwroFh2Qd/6RDlp T9LryJN63TjrjwaMPbxnKon60IbWHjAGybWyYdpoqnGJ9/9JpQjpsQawwQ+Xp+6JSuSe LHsRkcWl1sPFioEqK2pXiYqhjyTNVhbV/1jRAASdUayZnR9pxzdFh+OWDN99EE4QQ2/f Z7T5Gr9Tlbw0WkcT4BDBeNaMx4lz/JzXWNLSC7DKkJWQU8+Mfb2VaqMev4c80H7/2JLL Yagxj10ZZRDLF9qtisvwZhCdWLs0uj5thllmYh5beUj6xsDijM6NV5t69+ma3sqNkS9K oQ== Received: from g4t3427.houston.hpe.com (g4t3427.houston.hpe.com [15.241.140.73]) by mx0a-002e3701.pphosted.com with ESMTP id 39gtu7djr3-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 01 Jul 2021 03:51:00 +0000 Received: from G4W9121.americas.hpqcorp.net (g4w9121.houston.hp.com [16.210.21.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by g4t3427.houston.hpe.com (Postfix) with ESMTPS id 226FC5C; Thu, 1 Jul 2021 03:50:59 +0000 (UTC) Received: from G4W9119.americas.hpqcorp.net (2002:10d2:14d6::10d2:14d6) by G4W9121.americas.hpqcorp.net (2002:10d2:1510::10d2:1510) with Microsoft SMTP Server (TLS) id 15.0.1497.18; Thu, 1 Jul 2021 03:50:58 +0000 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (15.241.52.13) by G4W9119.americas.hpqcorp.net (16.210.20.214) with Microsoft SMTP Server (TLS) id 15.0.1497.18 via Frontend Transport; Thu, 1 Jul 2021 03:50:58 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=PD60z65mz5ZqvaNvYpmXiupSts7FO8gf0+MptnO1y9wBmu92Z/UEbstWWhakozGR0n9gXxXk5Gn3//nKgV+SmebP6Ca0zgBZt1AgkATWr+D3RgqpF+ww+MRtxQckNAdwsxbpyNDRVhW7seWc82RBVSRN+Js19vnYzbdpbVpN7OWGxStazAQsefArcuZ1aWHAs9HIL0qyE+h/ge2vilPZy7s0qF/1toDUNZFk6qmXOKZG4FQFdQg2FYi86pSHlN+PnHBgR7HPLk5d9zk5MgFMwv2Z3yUcbUmQKabMxLN6e6vK2Lb0BxJOW7OLHBOyumqGKbLuLSoBlNXtWaxne+D1yA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ar8aCbpbPoDdgso7laPL+lBjJi8MpSQkdAkOSMoE0w0=; b=nfl/GwIE6bJRxp600pvtT632Vs7sU9x8Bmt4Ov4+i6lXgHabbxjkJ+e9qPSNvHoOnwSD9zktnQfxehBQwR3w3+T4oe6d7CmQfQQi5D+SyViycu1aGfAIk8/c6IfetyX2nsafHuLCs8oLtAncP/7Ei3fQpFwXTf9GX+deLMaqe2VjPHuIfHdW13u9vpAZSKjbE7eiYT1nhy4WbO3pXcrhOpE3CmGzIVByM9zPiTrClsqqh/hpt/2sQJfu4TCYOm1P2gwnVUChagLM7I0bgSrrIt6W+T9a9P3bpZVDPJtzTg8qoiodztl1pMKvCrYgkxK17cv3mJhS71MSQV1yebGyaw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=hpe.com; dmarc=pass action=none header.from=hpe.com; dkim=pass header.d=hpe.com; arc=none Received: from CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:7508::16) by CS1PR8401MB0949.NAMPRD84.PROD.OUTLOOK.COM (2a01:111:e400:750f::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4264.23; Thu, 1 Jul 2021 03:50:57 +0000 Received: from CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM ([fe80::d447:2f82:1c6e:831f]) by CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM ([fe80::d447:2f82:1c6e:831f%4]) with mapi id 15.20.4287.023; Thu, 1 Jul 2021 03:50:56 +0000 From: "Abner Chang" To: "devel@edk2.groups.io" , "gjb@semihalf.com" CC: "leif@nuviainc.com" , "ardb+tianocore@kernel.org" , "Samer.El-Haj-Mahmoud@arm.com" , "sunny.Wang@arm.com" , "mw@semihalf.com" , "upstream@semihalf.com" , "jiewen.yao@intel.com" , "jian.j.wang@intel.com" , "min.m.xu@intel.com" , "lersek@redhat.com" , "sami.mujawar@arm.com" , "afish@apple.com" , "ray.ni@intel.com" , "jordan.l.justen@intel.com" , "rebecca@bsdio.com" , "grehan@freebsd.org" , "thomas.abraham@arm.com" , "chasel.chiu@intel.com" , "nathaniel.l.desimone@intel.com" , "gaoliming@byosoft.com.cn" , "eric.dong@intel.com" , "michael.d.kinney@intel.com" , "zailiang.sun@intel.com" , "yi.qian@intel.com" , "graeme@nuviainc.com" , "rad@semihalf.com" , "pete@akeo.ie" Subject: Re: [edk2-devel] [edk2-platforms PATCH v4 11/12] RISC-V Platforms: add SecureBootVariableLib class resolution Thread-Topic: [edk2-devel] [edk2-platforms PATCH v4 11/12] RISC-V Platforms: add SecureBootVariableLib class resolution Thread-Index: AQHXbayCDQqsfS5xxkiJuvskGJdvB6stfMZA Date: Thu, 1 Jul 2021 03:50:56 +0000 Message-ID: References: <20210630123412.996158-1-gjb@semihalf.com> <20210630123412.996158-12-gjb@semihalf.com> In-Reply-To: <20210630123412.996158-12-gjb@semihalf.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=hpe.com; x-originating-ip: [16.242.247.137] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: d1804c46-148f-43d0-0ad3-08d93c436ebf x-ms-traffictypediagnostic: CS1PR8401MB0949: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:669; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: uqt7EMfcs9gzSAFuR3sAZTE/HiSbFpXjRReUrCjSs2Vi/rghcPJfuw4fTa/3gBDmcj1QasMTDer9haKyfySPp8nt1a7fPEXX7xIbD0y/2OF6HN8/J+ZFizkChASbufvEMm4fcikbNOXFNJEhsdgLF1X72/54Cr6LRPIft9uf3W8OZyeaM4+P5wIClfMxcxQWsveC1EbdM2pMdW1X/q1pUf5dRrv0sQDzs408nqomEhMH3OSDh/c3qVtVFPsQ3hrEjo0aw18nMaOtEvY6XNRK0cpWGht66nrhFQQyjlWIQobV2qvM5e6GKasXfGdMlCueoX5UXpLZSkPgq6yG6t3I0KVAEOGWBPCPekblYNo1HYkQAsxkHzJuiyRQKkidrkfIvCjG7HwYlHIkBlWbTAfiz8NIEH+hUwk8OMyyNCXejUEbH/MLbfUK4pe+ElQ5MphtmkJ76dvwheO+HFt+ogZ6pzHUpz8Koyd1+vkggghYggnLgEoXMhrHX7xBNjgIpPF4YbTlQCLE9WtO6fotVPmgZRoisWx1xXeVJQkiwRHc5XHgVFFydgSLbCiy5IeV9ot73d7AaA4zeUWJ/ZsWIeWxhlkh4rTLqv10JZemhPuKIWjNhbG+uvsNQDqOz/Dg8LvTh0w2w+cbI0bpi8J8g9151rsPTWPuihV0V+UmPSMNeZRsvS3y11Y4ErbV63GgzWnJ3WZxyBI1kpKMTlhlAaomf1ol+sjFmy2qGWbj8xATeeJoCH4e6e4BPaeRbSYini8hPpQqULjQEAanKpKqAB4chueEsJ2T/WvYeoX4DNgFo+pE5bOTR6nEI66WVI0fKOQy x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(136003)(396003)(39860400002)(346002)(366004)(376002)(8676002)(2906002)(83380400001)(71200400001)(8936002)(4326008)(316002)(54906003)(26005)(122000001)(38100700002)(110136005)(53546011)(52536014)(86362001)(76116006)(9686003)(7696005)(186003)(478600001)(966005)(55016002)(6506007)(66556008)(66476007)(66446008)(66946007)(5660300002)(64756008)(33656002)(7416002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?4BrK5fWrdGewJxzLpm3LLAp64IeTiw7Yy2PBL65F3ll8Za8EyV9AjYFoXSud?= =?us-ascii?Q?A/OlZ8MZNx5KBK43Y+U4/Q3N3Di4EsLVxSwYxwKfxaiFDgCEUrxlh/BdOXCq?= =?us-ascii?Q?r0tJTx9ENDeSq7+/UggJq/uHlb3OBUrHbNE2tHcISgSZsprW1Vy/0Gb23mC+?= =?us-ascii?Q?z8c+C0V9J6cR1iSr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b?= =?us-ascii?Q?+G+DFaO1CYRTPxe7bFR2bCm2RIBEG7+zhggy0JAMWIQWX9ULrSVe/ns6PUYX?= =?us-ascii?Q?6FmC7XjA2LYTzfC8iVq0L9PmB5yhlfGu5QMlm1wilMF5dcSNyEXeEvmMdygH?= =?us-ascii?Q?9SWTF6VkN/rX3QRqZanI6fVeDc67lJIqm9KorfmKlq5Vdm3Ijue3/1SGrxwW?= =?us-ascii?Q?IhuAtFpVSopttXoiKv2UFQgA4RYW+FrUD853mM7SChm75ASfMT+hbf64RM6w?= =?us-ascii?Q?fkfnGeY9T7V76et7S5Hh2C7k?= x-ms-exchange-transport-forked: True X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: CS1PR8401MB1144.NAMPRD84.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: d1804c46-148f-43d0-0ad3-08d93c436ebf X-MS-Exchange-CrossTenant-originalarrivaltime: 01 Jul 2021 03:50:56.6805 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 105b2061-b669-4b31-92ac-24d304d195dc X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: J91oL47nxexqIT41Uf5Lh+CCFodtzsLuvYFRw6DQ3q5fyNIl5Q9E/hC7biVMf/uji3pfo5Pf3m/VC+7Kb9pXwQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CS1PR8401MB0949 X-OriginatorOrg: hpe.com X-Proofpoint-GUID: q1WN2W5-UOz_A7PZqgnkyUsrg7V0T9fb X-Proofpoint-ORIG-GUID: q1WN2W5-UOz_A7PZqgnkyUsrg7V0T9fb X-Proofpoint-UnRewURL: 2 URL's were un-rewritten MIME-Version: 1.0 X-HPE-SCL: -1 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.391,18.0.790 definitions=2021-07-01_01:2021-06-30,2021-07-01 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 adultscore=0 bulkscore=0 clxscore=1011 phishscore=0 malwarescore=0 spamscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 suspectscore=0 lowpriorityscore=0 priorityscore=1501 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2104190000 definitions=main-2107010025 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Abner Chang > -----Original Message----- > From: devel@edk2.groups.io [mailto:devel@edk2.groups.io] On Behalf Of > Grzegorz Bernacki > Sent: Wednesday, June 30, 2021 8:34 PM > To: devel@edk2.groups.io > Cc: leif@nuviainc.com; ardb+tianocore@kernel.org; Samer.El-Haj- > Mahmoud@arm.com; sunny.Wang@arm.com; mw@semihalf.com; > upstream@semihalf.com; jiewen.yao@intel.com; jian.j.wang@intel.com; > min.m.xu@intel.com; lersek@redhat.com; sami.mujawar@arm.com; > afish@apple.com; ray.ni@intel.com; jordan.l.justen@intel.com; > rebecca@bsdio.com; grehan@freebsd.org; thomas.abraham@arm.com; > chasel.chiu@intel.com; nathaniel.l.desimone@intel.com; > gaoliming@byosoft.com.cn; eric.dong@intel.com; > michael.d.kinney@intel.com; zailiang.sun@intel.com; yi.qian@intel.com; > graeme@nuviainc.com; rad@semihalf.com; pete@akeo.ie; Grzegorz > Bernacki > Subject: [edk2-devel] [edk2-platforms PATCH v4 11/12] RISC-V Platforms: > add SecureBootVariableLib class resolution >=20 > The edk2 patch > SecurityPkg: Create library for setting Secure Boot variables. >=20 > removes generic functions from SecureBootConfigDxe and places > them into SecureBootVariableLib. This patch adds SecureBootVariableLib > mapping for each RICS-V platform which uses SecureBootConfigDxe. >=20 > Signed-off-by: Grzegorz Bernacki > --- > Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc | = 1 + >=20 > Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.dsc > | 1 + > 2 files changed, 2 insertions(+) >=20 > diff --git a/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc > b/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc > index b91823ceeb..fc5ba2a07f 100644 > --- a/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc > +++ b/Platform/SiFive/U5SeriesPkg/FreedomU500VC707Board/U500.dsc > @@ -122,6 +122,7 @@ > OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf >=20 > TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTp > mMeasurementLib.inf > AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.i= nf > + > SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureB > ootVariableLib.inf > !else >=20 > TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/Tp > mMeasurementLibNull.inf >=20 > AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableL > ibNull.inf > diff --git > a/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.d > sc > b/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540. > dsc > index 0eafe29880..71add8ff9a 100644 > --- > a/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540.d > sc > +++ > b/Platform/SiFive/U5SeriesPkg/FreedomU540HiFiveUnleashedBoard/U540. > dsc > @@ -122,6 +122,7 @@ > OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLib.inf >=20 > TpmMeasurementLib|SecurityPkg/Library/DxeTpmMeasurementLib/DxeTp > mMeasurementLib.inf > AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.i= nf > + > SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureB > ootVariableLib.inf > !else >=20 > TpmMeasurementLib|MdeModulePkg/Library/TpmMeasurementLibNull/Tp > mMeasurementLibNull.inf >=20 > AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableL > ibNull.inf > -- > 2.25.1 >=20 >=20 >=20 >=20 >=20