From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (EUR05-VI1-obe.outbound.protection.outlook.com [40.107.21.62]) by mx.groups.io with SMTP id smtpd.web12.8542.1625821851058249225 for ; Fri, 09 Jul 2021 02:10:51 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=Xc6mg0+4; spf=pass (domain: arm.com, ip: 40.107.21.62, mailfrom: sunny.wang@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HTmb5uHdXImVaFtQInloGsGNszxd58wLYToLpFkdYqc=; b=Xc6mg0+48OWUcAD6LeYn4nhkAjSKHaR4CJOYssR5E/4cn4WkaiYm+4W2u2vpAZy21Woi5S3Sd2/ZM5wbAMx7PuCFnjlgeL9FNOblbX3A099BsSWIqY23HUVFCvpSqJaTNCq1/llFiRfuJB5Qk0Y0rS//8aXEdp1787Rl7sFB2VA= Received: from PR3P193CA0060.EURP193.PROD.OUTLOOK.COM (2603:10a6:102:51::35) by AM0PR08MB5394.eurprd08.prod.outlook.com (2603:10a6:208:183::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.22; Fri, 9 Jul 2021 09:10:48 +0000 Received: from VE1EUR03FT057.eop-EUR03.prod.protection.outlook.com (2603:10a6:102:51:cafe::34) by PR3P193CA0060.outlook.office365.com (2603:10a6:102:51::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20 via Frontend Transport; Fri, 9 Jul 2021 09:10:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT057.mail.protection.outlook.com (10.152.19.123) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4308.20 via Frontend Transport; Fri, 9 Jul 2021 09:10:47 +0000 Received: ("Tessian outbound 17c2a40a31ce:v98"); Fri, 09 Jul 2021 09:10:47 +0000 X-CR-MTA-TID: 64aa7808 Received: from 84ee7dda2bf2.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id EA81DE49-2BA4-4648-9847-4657ADE2052A.1; Fri, 09 Jul 2021 09:10:38 +0000 Received: from EUR01-HE1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 84ee7dda2bf2.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 09 Jul 2021 09:10:38 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b8cRp1c20aoYXpHHEUrHj5joRcYlDt/HvbozBtIom8VfQfrv2TUvy4PYv5Y7kYLU7XSjxgzSB3xUJsOzyo6ud0yixkYo77pH6RcYnd9MOVdVGg07Ib4AwdE3dfIFbC4mQ+/xlOxlHUAEbKqU5COg4F5/zPpLCpourZXXX068Ny3Vaf1Lec1BFNfvg3JomK7I8zkohvA0NarEz3aZMgLsKidNpq34ZD5adcW4T/oKYZSwQbwaipoqAwkTcF9jTvk7idQKwBBkSFcXNmUkegPTuttrGBU1CFP095BC+osRWgb0J0cBPhx7FL3eWWaIa6qI8wjjtKnyWcxL0mt4gNDjUg== 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=HTmb5uHdXImVaFtQInloGsGNszxd58wLYToLpFkdYqc=; b=CcFKy2rtArKg18l8oTxuNPWO1Ol56tlHQ1wRunaZf7pzpkMly+Op0hdn6RCvOiIFVqWAfwXgJt3MIouK+yVCIUCE6k96bzL9PN7+BvVd1Y04yT+qnJ51mKmS9TcJUr6Z224hMDMZSu6zYXGtAVFYem0nWeSJ+98sOQpMJTwGtXbSEqMj8clZ6jwipyyaCsHBifY4MFJaRYSpHisuqIEYAQt8ZE4fb/R9+lVFbmcggRON1oFesYpciHT2daqXqPxD6aVJ8x5h9U1vrkuS+Z4AfHGvm5qPYK4RNq8YsF14YEhWRrYlL2ZuiEpqWw0S0NWZMz1yyTwgtmvrBSAfl7K7zA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=HTmb5uHdXImVaFtQInloGsGNszxd58wLYToLpFkdYqc=; b=Xc6mg0+48OWUcAD6LeYn4nhkAjSKHaR4CJOYssR5E/4cn4WkaiYm+4W2u2vpAZy21Woi5S3Sd2/ZM5wbAMx7PuCFnjlgeL9FNOblbX3A099BsSWIqY23HUVFCvpSqJaTNCq1/llFiRfuJB5Qk0Y0rS//8aXEdp1787Rl7sFB2VA= Received: from DB8PR08MB3993.eurprd08.prod.outlook.com (2603:10a6:10:ad::26) by DB6PR0802MB2566.eurprd08.prod.outlook.com (2603:10a6:4:a2::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4287.27; Fri, 9 Jul 2021 09:10:33 +0000 Received: from DB8PR08MB3993.eurprd08.prod.outlook.com ([fe80::14b0:85d6:deeb:9ee0]) by DB8PR08MB3993.eurprd08.prod.outlook.com ([fe80::14b0:85d6:deeb:9ee0%7]) with mapi id 15.20.4308.023; Fri, 9 Jul 2021 09:10:33 +0000 From: "Sunny Wang" To: Grzegorz Bernacki , "devel@edk2.groups.io" CC: "leif@nuviainc.com" , "ardb+tianocore@kernel.org" , Samer El-Haj-Mahmoud , "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 , "afish@apple.com" , "ray.ni@intel.com" , "jordan.l.justen@intel.com" , "rebecca@bsdio.com" , "grehan@freebsd.org" , Thomas Abraham , "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" , Sunny Wang Subject: Re: [PATCH v5 04/10] EmulatorPkg: add SecureBootVariableLib class resolution Thread-Topic: [PATCH v5 04/10] EmulatorPkg: add SecureBootVariableLib class resolution Thread-Index: AQHXblo6hmxRhjed006Bb1Ajx56fxqs6Z6Qw Date: Fri, 9 Jul 2021 09:10:33 +0000 Message-ID: References: <20210701091758.1057485-1-gjb@semihalf.com> <20210701091758.1057485-5-gjb@semihalf.com> In-Reply-To: <20210701091758.1057485-5-gjb@semihalf.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: 9B64D2D92159BC4197C849EE8E93CB0D.0 x-checkrecipientchecked: true Authentication-Results-Original: semihalf.com; dkim=none (message not signed) header.d=none;semihalf.com; dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 711fadcd-135b-4219-1940-08d942b970cb x-ms-traffictypediagnostic: DB6PR0802MB2566:|AM0PR08MB5394: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:2043;OLM:9508; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: cZCrTnKmpqbaYgUtEgdmUl2j1k1HbisyTD67p63Qft/nYDm8kPMIZnP1CeF70VuXTxo8LXPvQGdA16Ncw6ziVemIcJfzRkhRsyTanaGeYMUnwX62UJvgIkrCUlDk7ynTbpXbqQZjxj0BbXh3/75BWHFg60SbgK6svTl/QI28VcygB4ZiRWiT1uMlQ0mimlp1Ml7ajDTGyd+aN3Q+HIPCrX6XKtQwnwCwf5BrK9EODIMRc/L2YvflJdLbnIeHRGoXOY9KDu/BZ7dtnjvpT8AuZ2x7oNDz72ko9Pm9re+lKUuxShD9noeUJbczeYhz9dDo1FGzuEiAl1eV5juNfIrT56Q+vqHRo6yE+ASssaGdp0ua6EVHDYQzTXoAMxOwJxgIq8xoFKobj10fxK7pX6b+VtuTjlGXUphFR3RPNlLT+vK3VjhAwCkjqmvdKSLSp6EkLU/RgC8+Da++/lrHABOyZyvYL5O8yxk7oNn/B5GMSn1lnwTyZ5yp9ECSplhv4rM+ecghPJg1mi9oYx3qGNJhFhHZreegXGqdybFC3kb49HWuU0qu4Z1u2DsBKvSqr7rck20s29CeNRjwQaAioaKe7gwEbuS5kxEuMIGKu9Yq6zaH1FifcfIS36u7jPOH3Fd3sKajpFXTy+XoxU6cCcthNA== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB8PR08MB3993.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(136003)(39850400004)(376002)(366004)(396003)(346002)(64756008)(66446008)(76116006)(8936002)(66556008)(71200400001)(6506007)(122000001)(53546011)(186003)(66476007)(2906002)(83380400001)(7696005)(8676002)(55016002)(9686003)(66946007)(38100700002)(316002)(7416002)(86362001)(4326008)(54906003)(33656002)(110136005)(26005)(478600001)(52536014)(5660300002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?xUoaN2EN4w4K4yf3rpkhrhxIodLSMsJsf14GvRtj4RZBHe4XCKRYT8HJQlpc?= =?us-ascii?Q?Fx8n9zo4PAj5KOHQ/LzF411MXBK7SusJE0BEL8w3BxSm05JEd5AqI2p3U6AI?= =?us-ascii?Q?42hy0LarkkGyTg48/iLrJTl8WIkETkdVRRmuj87xZEEg/zgCNwVtm2lrNiGX?= =?us-ascii?Q?4MOQ2niW2IrpCOiI+o1IIyF3BGqCE5SiNsQo0eXaMuETjnHOnnj1wrKmmAvb?= =?us-ascii?Q?7y15xF4QRhcSW4oOpDXZ3d7gxnZtrrWQ8mK2C87B5+XiY1SwCgcgMKLfAH8R?= =?us-ascii?Q?o3nyqqNPOOcCMGChvFoAI27Qhll8tPMEqqkMiLQQscnSHNn+mw04dTRpTTMR?= =?us-ascii?Q?f+JbFzBsCqeH9XyW1Mol0RoNAVSkYWjmVf079W6Q7NBiy2WionLrINIl66E5?= =?us-ascii?Q?IDcsv6w6kMx9WP7id+BZU7S9m4peflD0F5zIcKKhdHh6DflNISHMwXlafjvU?= =?us-ascii?Q?/JpthMtm85jcamLDhiqK+4JK8THH4kG7mVha8EdWKO8WiKcCq5jx0sAa5e3J?= =?us-ascii?Q?pJFpKNRxbK3Lg2xzZx7Cj3R3QH1RwbI39MwudPZWctoKmRrcXYYYsCYgnMNv?= =?us-ascii?Q?9SA65vnYAYUnHp3uOZEIMytkdRrF+QUgiFSHbk6oVkBetQKXXFTFU3/ke54+?= =?us-ascii?Q?alZOflg4KgbikFEABqQ2qGaBhvTyq79WB/sNPlkBRllk6XKMgll0OEiyA5K7?= =?us-ascii?Q?y3Yts8XwhkG7WEBCJbbyye6EnKVAnn3UnytATuuHN1BDcoDNKwwYo3s1zB4s?= =?us-ascii?Q?BfVc2lnbWUgaoA5dXYse9RbvC9SPIHyqWysu+d/CeOvvFtErYXOE9kham88y?= =?us-ascii?Q?YOGns6SIB9natycqZQXwquFyOvpYGLVZestC0F0s7ar1mL8yLCna74Wrltul?= =?us-ascii?Q?qRbK28+KpVdnquKOqnb0LU9TrWkdmLMi3m8yJvswaGiI8fQfq4op7fjhrcvw?= =?us-ascii?Q?soC8+tm0Y/oeOhc2fF1avUAU7gxvMZ6+qAccVsw460+63uHxnJKH/wMYtTxY?= =?us-ascii?Q?ay4dciZFyYdDkzLVBPwgWtd7jako5nM+WphQ78YbIB9jBlJuazmkDta9X7PQ?= =?us-ascii?Q?uA5DyGkrjq68Nw1qucxKf2vlbc4vuKCkgELm3XzMj2RK9nOlDaNQpF0+TfaB?= =?us-ascii?Q?yeDkIZqs/jl8uAY84eEQaFA2k8ShPHVQGIzIcI7/+d5Yg6+PHwILMKtwx6Je?= =?us-ascii?Q?TwfqM4469nH03I0tKsiuCOKrQMSFFSOG+KicuepOcNZHUvvx1pWOU9osE/jX?= =?us-ascii?Q?QAbBdAfk/ssSzCJ30TVw0lf93FkfT1Vs3MTaYWwoEfuR2F0xMpUlt7O+VU2k?= =?us-ascii?Q?AwsNZs+TOJ3ndQK+fZDeDUzz?= MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0802MB2566 Original-Authentication-Results: semihalf.com; dkim=none (message not signed) header.d=none;semihalf.com; dmarc=none action=none header.from=arm.com; Return-Path: Sunny.Wang@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT057.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 5558be7a-2d07-4ced-bfe1-08d942b96830 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: fqpbrCgsAU0f9diNPczQ8A0ad64S/ceC0obBi9t6nG3u4OlXHSKJ6+JSJ3HeQeoPop88Ualxj9+U+zITze2+8YdvCy3bmKV8+/MTap6lFRQVLzkiWfkzyzIxw5xafgZeq2tnBzqazxe9c8LjS115MlVRNLG9NJYC11IxJwQVZyG18MDBjPlbdToKeutQ3MH7sSc4ojFx51lLIoHEi3hKUpyEi77M5QEQoSG4YiEoJOG7WPWmHWy3yIoB/4ti2i1QufmEGebM3kObOTAjeTqmIbO4aNWKugScxpgZoWNnsSOT9BP7ZstM3UdKagINbtsNV8zm34cOOmDQPXE8w2EBlsGtozIhp/X4SFdVmWoNgVlpOVyzflo/fgLzhDJEzJ+wT6lpcGLEYTYDEFyOpSRg9OWcfhYn2o+eoHb3zy6sJs9WLKrHzBKzsm5U9PEiK6yezAWmJx3TX+EFRAaTnNknAJb1hj0+AME0koiMrfgLI/2ktTbBN94ToKKRxD0eUhRr+ePcdH+zQwfdHOQmLApuZvxy+oYjeLrzAjkLt7UrxObjmCusaT1zPsWFiw5bu/0gFVn1U9dnapro4bZZyJoUFSzNkw+gK3IH+LcQO8/1aXNhyYNKrORx9bljuQTSFhWjCOwBwJ76or8erCkakd6508xWNFVRvIKhjmpk06h4r7ugt+/zrV1Qx92GPMvXqPGulZ4qNMZm6AYYzVQ5lsA9Pg== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(4636009)(376002)(396003)(39850400004)(136003)(346002)(36840700001)(46966006)(110136005)(70586007)(54906003)(478600001)(83380400001)(86362001)(70206006)(186003)(4326008)(7696005)(316002)(26005)(82310400003)(9686003)(55016002)(5660300002)(336012)(82740400003)(356005)(8936002)(81166007)(47076005)(52536014)(8676002)(6506007)(2906002)(36860700001)(53546011)(33656002);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jul 2021 09:10:47.5038 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 711fadcd-135b-4219-1940-08d942b970cb X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT057.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR08MB5394 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Looks good to me. Reviewed-by: Sunny Wang -----Original Message----- From: Grzegorz Bernacki Sent: Thursday, July 1, 2021 5:18 PM To: devel@edk2.groups.io Cc: leif@nuviainc.com; ardb+tianocore@kernel.org; Samer El-Haj-Mahmoud ; Sunny Wang ; mw@semihalf.co= m; upstream@semihalf.com; jiewen.yao@intel.com; jian.j.wang@intel.com; min.= m.xu@intel.com; lersek@redhat.com; Sami Mujawar ; afi= sh@apple.com; ray.ni@intel.com; jordan.l.justen@intel.com; rebecca@bsdio.co= m; grehan@freebsd.org; Thomas Abraham ; 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 B= ernacki Subject: [PATCH v5 04/10] EmulatorPkg: add SecureBootVariableLib class reso= lution The edk2 patch SecurityPkg: Create library for setting Secure Boot variables. moves generic functions from SecureBootConfigDxe and places them into SecureBootVariableLib. This patch adds SecureBootVariableLib mapping for EmulatorPkg. Signed-off-by: Grzegorz Bernacki --- EmulatorPkg/EmulatorPkg.dsc | 1 + 1 file changed, 1 insertion(+) diff --git a/EmulatorPkg/EmulatorPkg.dsc b/EmulatorPkg/EmulatorPkg.dsc index 20e5468398..966cc7af01 100644 --- a/EmulatorPkg/EmulatorPkg.dsc +++ b/EmulatorPkg/EmulatorPkg.dsc @@ -132,6 +132,7 @@ OpensslLib|CryptoPkg/Library/OpensslLib/OpensslLibCrypto.inf PlatformSecureLib|SecurityPkg/Library/PlatformSecureLibNull/PlatformSecu= reLibNull.inf AuthVariableLib|SecurityPkg/Library/AuthVariableLib/AuthVariableLib.inf + SecureBootVariableLib|SecurityPkg/Library/SecureBootVariableLib/SecureBo= otVariableLib.inf !else AuthVariableLib|MdeModulePkg/Library/AuthVariableLibNull/AuthVariableLib= Null.inf !endif -- 2.25.1 IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.