From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web11.5701.1634116196089945446 for ; Wed, 13 Oct 2021 02:09:56 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@intel.onmicrosoft.com header.s=selector2-intel-onmicrosoft-com header.b=RnvzfUE9; spf=pass (domain: intel.com, ip: 192.55.52.43, mailfrom: ray.ni@intel.com) X-IronPort-AV: E=McAfee;i="6200,9189,10135"; a="313585500" X-IronPort-AV: E=Sophos;i="5.85,370,1624345200"; d="scan'208";a="313585500" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 13 Oct 2021 02:09:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,370,1624345200"; d="scan'208";a="460706947" Received: from fmsmsx606.amr.corp.intel.com ([10.18.126.86]) by orsmga002.jf.intel.com with ESMTP; 13 Oct 2021 02:09:54 -0700 Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) by fmsmsx606.amr.corp.intel.com (10.18.126.86) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12; Wed, 13 Oct 2021 02:09:54 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2242.12 via Frontend Transport; Wed, 13 Oct 2021 02:09:54 -0700 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.177) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2242.12; Wed, 13 Oct 2021 02:09:52 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ADQY85av3ctscjxu6SxUltqd5txyUGIVxn1Wjn1bLkKiyUhVxKBXurLCzednRceT9/jlKxyqq8nz1Wkp7cZJAbq39fOXmxXZBYb21krv3qAIf/3Y5ncZ2/qbctUY6IHbej5CokYCB7omQ3HGXcQrjB5vZLPHD+HmCnGliZZmugb/gT3Rz8D/kor4TcxpocR9Vv1JyA5npbgCsWYu3k5HOkIXhVKsIBhCBRuU2AYSQeI2A0I2MueHnHzI0XxWSkOziCpCyhvtouYl6rC7ZS3zbVVATLMgixl2t8c19tzs3jDBPYk07iU13xKe14bdlACAbeeghNtqGZJ2nYB3U6cuNw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tpe0l9k80Rr6qZAqj7TQ09vmgsvqlW4/S6arw1LgMTg=; b=TuDerQyUCf6M/ilUeMn4zMZFmtiaV2hrupkdJlwacp4ZYMNzBxEwMVNK8S3hZu0qYmYnOQ069S3M+doTK6Rrva677qWqvKQA8pVUqGjv7W7nO8YOOsnAdeulPCHIVDknCBq/AhmvniJ+Xccu6NMjYM58WgOnh5WB5x/MGGKeGh01jA5nbrT5TFQn/Lxf3GYR97dQQRDSBGB5LgPi0D6ALHWmIGhvrlwLofPKD+ZDDsmfrUfyynA410BRWxac4F2hupzpywv5TJhhg3Dho+sKLJerfsbRrkjuUaQ5Lcngn4oaBN7PfZJXyT1yg6fGvEaz4Yq0cIphyaage96xML5DAA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tpe0l9k80Rr6qZAqj7TQ09vmgsvqlW4/S6arw1LgMTg=; b=RnvzfUE9i+qtP+HkMGummL7rhu/dTcAO/SUsnhGONUWOhYCTViBB51/TNTWljTQ0UgcUrsUyIOYdlYRyVuUOhaB2MWfiLMssjZ1XubgD5N70HogW6o/EkPf3Dsn2GaZvPWRZvIDdo2YLkADm7Kof+PQOry3PElhyCGpJ5X00HB0= Received: from BN0PR11MB5696.namprd11.prod.outlook.com (2603:10b6:408:14b::11) by BN6PR1101MB2212.namprd11.prod.outlook.com (2603:10b6:405:52::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4608.15; Wed, 13 Oct 2021 09:09:51 +0000 Received: from BN0PR11MB5696.namprd11.prod.outlook.com ([fe80::317e:de35:e920:7778]) by BN0PR11MB5696.namprd11.prod.outlook.com ([fe80::317e:de35:e920:7778%3]) with mapi id 15.20.4587.026; Wed, 13 Oct 2021 09:09:51 +0000 From: "Ni, Ray" To: "Liu, Zhiguang" , "devel@edk2.groups.io" CC: "Dong, Guo" , "Ma, Maurice" , "You, Benjamin" Subject: Re: [PATCH] UefiPayloadPkg: Use SECURITY_STUB_ENABLE to control the SecurityStubDxe Thread-Topic: [PATCH] UefiPayloadPkg: Use SECURITY_STUB_ENABLE to control the SecurityStubDxe Thread-Index: AQHXwBHtCODTcj7lnUubL8tLnGdkaavQo60Q Date: Wed, 13 Oct 2021 09:09:51 +0000 Message-ID: References: <20211013090822.957-1-zhiguang.liu@intel.com> In-Reply-To: <20211013090822.957-1-zhiguang.liu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 638a64b8-4e5a-41df-dc85-08d98e2936d1 x-ms-traffictypediagnostic: BN6PR1101MB2212: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:480; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: hwJFUVJs/6qlVjY75n8BS8ffFidgGUoQiaRsBWzmpJwkn8kZKKWnWcAmhs882mt37ug+6bcmpIxNNgcLcvELDr+kYxxcM4gE/BCj4JjBW0V6+Pm6kyPJiUoU/zWcBn5qRsU16rA4TdEdTjQToG1ZdMLfgB1lOJYtOsM1bnlWEC3FBlma84W42lPGMYRe64VajMwQQ0hvVBSWBetLFsn0KpNxNDrRnpg2ETkAeG/G+bC1xQUnkj5kJZVUsuvemEnMTniJlHTF4KPzFR481jXiETudZq9zkRR8KJ2BFhUYKmmkVEKNMsOpcXWmQLlrwIZlpo1E72kJzF5/xNKZ9zaxA2zvnU35Hw2rQqye0g55gx9+OMgVm2q57Qzc/YCjVfM/tFpcNRpgoVI+4R44BmHB/b5w6HLwMumhGqcPUWV5V72Lj+I+Tc8s6XBpYtqwmvvIXR8FrjsxmzA0nc4Z9rZxHhxZlXxtstvZNiBmy22t797DJ8Ykr2d5MLrKMcyo1Zcv9aDlimotyA3SwrnNRjbzUUT92KBbYRfdy6B2zVIKdetzJh5i38SuAQYlcJHV64QH37XZPgPyULMkEL8gGBIOFst0X+wWMqdiDNoujo3LrhhhLLIKT7VzTYxgRwCt5X88WjWMnKUao36NA5GJZKhmeV2luStWlL/v+nzOUL3ALc0ObbBD9oVTsPwUBkEeaLPc68eDsVN38/jzwPa8ssRKmA== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:BN0PR11MB5696.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(55016002)(66556008)(71200400001)(66476007)(66946007)(38070700005)(64756008)(76116006)(508600001)(107886003)(110136005)(9686003)(54906003)(82960400001)(66446008)(316002)(26005)(6506007)(5660300002)(53546011)(8676002)(83380400001)(8936002)(33656002)(186003)(52536014)(38100700002)(7696005)(15650500001)(4326008)(86362001)(2906002)(122000001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?517e40t8IIFuEFVKPk1QmYqp64EbzAHmC7EWuhwrWS1xzLClYMBuyUqNot1T?= =?us-ascii?Q?XjzPxqDfLxoleCDq5NAkb16VJx3HLV2BmmqX0yhMtrEyy8p7JMR6M3UpXE4E?= =?us-ascii?Q?5FKu1IkhYXm6hfl4gArlwRA07B632tSJb2YOFTO6I9SL5Fjyl0MKGPGpz3FZ?= =?us-ascii?Q?+AD+eA8Vtfy54+5sUiqpSWsFiQ5Z8avlm9HSIsyWlgsUzN7dl0ahIwAftAv3?= =?us-ascii?Q?e+v/VPCfpO0Vs5GZRBWEX/7kUGEBPmVdmi6ydPYQQzlTKTv/L7RWtUQwE1Z5?= =?us-ascii?Q?UJ2Xvpk+Ij92gy63W0z9cGAKRfMp6IkKDs2dzfPR24ksiM9Xe2DyjYFPpq+l?= =?us-ascii?Q?yOFatGIlxaRHptrmrZdJuMnJT2RBk2F8sk2bLWXp3x3kiMYxcHdHfyNBO6PT?= =?us-ascii?Q?vNlv0EFXPJbp3GeRabEFvaSiL2leI86min8Ifi7XnpKXUg4Y0Toau4J5OJIA?= =?us-ascii?Q?jW77DAFP9MsNjlJ5RiK0L28r/8+oswO5Sf4Qc60Ixdm5T+Nk4ozB1sd2DnrE?= =?us-ascii?Q?tFZ6sbiLOLD90cMTEArH4DOrW9wy1BnrkBkYBGWMhG2NArSxg3gDJ2rSC1aN?= =?us-ascii?Q?pVBGgCBdLgHw05ijPRbUm3v1Kz4+nZVXQ+NXOULeB4cBt9M5NJimWT1T1P0g?= =?us-ascii?Q?yZ7lx7Z7uBVsq+zPP7N25xNBH0f2Put6nX7RMx3zJBo+OFRdWA6YweHtBE9v?= =?us-ascii?Q?VyCWa5iniDyYlL4KAcWbOLbGyOpfSIJef+4pNWrWM7A7sOzf496YtGEh93l3?= =?us-ascii?Q?p4OymQEoduzwo1qGLVcLZL7oS7Fj7gI8569rO8I7UKCAoz/gdPsnDPlZgxia?= =?us-ascii?Q?5lnk0MJzm3GIHdbCX9ZptmmeeE47aH1lQCaUQheAMn78Dt3tNHXnfiFSgoMH?= =?us-ascii?Q?seXDl0ImpX7r4p0X8pmf4sqcR1YQj/6emS/lzO13Hdxi4YvjvIARqaQAB0JP?= =?us-ascii?Q?MSHMUqsmU1n8yyh8n3gPhdBBFboUUPWrcgpCWbPfUIYbYiaWW12e1XtkFKDl?= =?us-ascii?Q?rOdemTDjSrpxwytOAXpLdPcYuhbyu6ZOmSIbBBXxbI5WFVQ5d38IzL2URzIV?= =?us-ascii?Q?3Pn3BRr079z7HQX3fX+zu81Od3Tb4EzyBNN2ivlUG5HEElKPEmToR1iFilsI?= =?us-ascii?Q?RN+bZYdtGaD5eDz+6tOlbkIlTgoCiJYczNKos0L65u1aKnCCfqoccROVlLNs?= =?us-ascii?Q?UCa+Qf1twhioqt5fXiLUD7q1q2iXO1kzGu+7dsqQrIQn3oQLdZuBuTfwNNZq?= =?us-ascii?Q?R+3GtS0qMnwQHqgvYYe/irdJkbBiZ3Pu56IjhYRyrd+8dlWrzK7+IrM6gSBd?= =?us-ascii?Q?wACUxWFHMjuwp+ViYMW4M/7d?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BN0PR11MB5696.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 638a64b8-4e5a-41df-dc85-08d98e2936d1 X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Oct 2021 09:09:51.3246 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: hqESpQOgWtjtT+o2gI8WYEnxC/PiO4fR7XlDjH73u4TVUT0Lv8qNaV7Rk9jDXgENgXl2iba/g7YloCMXkIeRkw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1101MB2212 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ray Ni -----Original Message----- From: Liu, Zhiguang =20 Sent: Wednesday, October 13, 2021 5:08 PM To: devel@edk2.groups.io Cc: Dong, Guo ; Ni, Ray ; Ma, Maurice= ; You, Benjamin Subject: [PATCH] UefiPayloadPkg: Use SECURITY_STUB_ENABLE to control the Se= curityStubDxe The SecurityStubDxe driver may be provided by platform payload. In UefiPayloadPkg\UefiPayloadPkg.fdf file, SecurityStubDxe should only be included if SECURITY_STUB_ENABLE is TRUE Cc: Guo Dong Cc: Ray Ni Cc: Maurice Ma Cc: Benjamin You Signed-off-by: Zhiguang Liu --- UefiPayloadPkg/UefiPayloadPkg.fdf | 2 ++ 1 file changed, 2 insertions(+) diff --git a/UefiPayloadPkg/UefiPayloadPkg.fdf b/UefiPayloadPkg/UefiPayload= Pkg.fdf index 6b48bfc869..72e4c70467 100644 --- a/UefiPayloadPkg/UefiPayloadPkg.fdf +++ b/UefiPayloadPkg/UefiPayloadPkg.fdf @@ -97,7 +97,9 @@ INF MdeModulePkg/Universal/PCD/Dxe/Pcd.inf INF MdeModulePkg/Universal/ReportStatusCodeRouter/RuntimeDxe/ReportStatusC= odeRouterRuntimeDxe.inf INF MdeModulePkg/Universal/StatusCodeHandler/RuntimeDxe/StatusCodeHandlerR= untimeDxe.inf =20 +!if $(SECURITY_STUB_ENABLE) =3D=3D TRUE INF MdeModulePkg/Universal/SecurityStubDxe/SecurityStubDxe.inf +!endif INF UefiCpuPkg/CpuDxe/CpuDxe.inf INF MdeModulePkg/Universal/BdsDxe/BdsDxe.inf INF MdeModulePkg/Application/UiApp/UiApp.inf --=20 2.32.0.windows.2