From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id D663574003A for ; Tue, 6 Feb 2024 08:53:55 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=KASLvX16THtfPhRuFLYpBdFYA25rych0jqfVZmqHjCA=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1707209634; v=1; b=W1URO3FdZFMI29BT8alR0KI0d5+Cgi8TBAt+BU2WQHXC2TX2Om+N7edI+4Z6IgMvCnemZMV2 Z3q8dS3U9kh+20uAxJ/4icthyh9xKto+8iQTLDIbP1mvTVzOotlYBD5OSbJM3g5skYxVFK/uBu9 50GuB3ATwVv44Vcm9bu2HUtU= X-Received: by 127.0.0.2 with SMTP id hzdQYY7687511xiMnRsmdcZf; Tue, 06 Feb 2024 00:53:54 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.20]) by mx.groups.io with SMTP id smtpd.web10.17535.1707209633746092722 for ; Tue, 06 Feb 2024 00:53:53 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10975"; a="604801" X-IronPort-AV: E=Sophos;i="6.05,246,1701158400"; d="scan'208";a="604801" X-Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa112.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 06 Feb 2024 00:53:52 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,246,1701158400"; d="scan'208";a="1195071" X-Received: from fmsmsx602.amr.corp.intel.com ([10.18.126.82]) by fmviesa008.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 06 Feb 2024 00:53:48 -0800 X-Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx602.amr.corp.intel.com (10.18.126.82) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Tue, 6 Feb 2024 00:53:47 -0800 X-Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Tue, 6 Feb 2024 00:53:47 -0800 X-Received: from NAM10-DM6-obe.outbound.protection.outlook.com (104.47.58.101) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Tue, 6 Feb 2024 00:53:47 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ddyLYc+FKYXFk++Gn60ftrexQ9Zy8bcAflLDuuDUpJX24UIK6uCq/eW5easi4KIOTy5oAei6S6UqDTnNrEVk9A1mRjeZADslj3LppH0TgoRDxtn//tNylhQcOTUaT9ceDhTabT0LiJEuj7LbIq1UlHXJBNYvBBBW4SmFBUulZkyy40kR2WZngjNLgP1ztn/ZXIBvLro6dDMg0al+toMJ74OovGNn9qpEasUWkD/8C5nqPi4At93X49zZysFGM9HBL/K1TrwHGuVbvhUjTZN5uZyCkjasjibRh/3ATbp5TrT+IhEjmb7Hz/PClxjCsOAmKttHPdgbuYfBYOyNWa3iFw== 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=67E7X/AYkHoqMem+RI2FHvXDHghqg0bbLSkfh5s7pNs=; b=diiFH1hIjg1+zEMf0qcrk87SCcdli9DtjJZO+a6SKI9Q4/d/tdwdlS2OrOfj18qXtf3En0xn+GLtsgLu+yVVHEQRHi36q4ylq9BQ6i+aEvY1Fl/e0R1lwHYcqtHTgBGzklpX6zgVCgCp8qUDRQJGieDzQUGfSifswGSGgwL4AKbcpSZbZtmbIoWJPO+4XMWAKawuug1fgdUW98ZuKN23EOvY1i7gD8zhJ1UFhVBcGTP97HSI/r9xmzqCVfCE+Mnx1F/vUnPRiyr4NaMxUT7fGdhK4eYoBwiqoktbgBVVMp88zNOFLKu2PhiWB1uVZbTMFxG5y4KYXzn2k845cSijag== 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 X-Received: from MN6PR11MB8244.namprd11.prod.outlook.com (2603:10b6:208:470::14) by DM4PR11MB7351.namprd11.prod.outlook.com (2603:10b6:8:104::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.36; Tue, 6 Feb 2024 08:53:45 +0000 X-Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::f4e6:157c:2058:8b1d]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::f4e6:157c:2058:8b1d%4]) with mapi id 15.20.7249.032; Tue, 6 Feb 2024 08:53:45 +0000 From: "Ni, Ray" To: "devel@edk2.groups.io" , "Wu, Jiaxin" , "Tan, Dun" Subject: Re: [edk2-devel] [Patch V2 0/3] Fix potential issue in CpuPageTableLib and SMM page table initialization Thread-Topic: [edk2-devel] [Patch V2 0/3] Fix potential issue in CpuPageTableLib and SMM page table initialization Thread-Index: AQHaWJ/+EJzZgLVuPUeM41s/pjZNaLD8v1gAgABDT9A= Date: Tue, 6 Feb 2024 08:53:45 +0000 Message-ID: References: <20240206015757.1816-1-dun.tan@intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN6PR11MB8244:EE_|DM4PR11MB7351:EE_ x-ms-office365-filtering-correlation-id: 79542b80-f9e8-4b26-032a-08dc26f1208f x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: mFpI7bmfdQu3QW9G5C2CiMb3rtRXOOYMxJ68jrAbJmi1GFJuNYuZYe3EDu9dXwbj+4freuDNrMvMjNXZnpFWwjMNzxmge5YCwa1KeXRTyw92hPz+dOsKSp/YEmg1TCXQaMpIqDrt/ZT61eS6ZGEauIjzKpnoQyitX6J5eQ++TBQwirA60GHzwH2nB8IPa2szpCUOfLKH2N7UTJ1JFdywuSwqScfF5BMC9vpJtZP7i/nOVR4aHD2Gt9rgzgKdes3+6EIH1//+M5ZOydepTKtFq8f414D9B8jgW3atfyAqISQ/HHdK5PNJ3rGyv9zK/qCHIIjP3IYXVzcbdaIc9O8vNVGHX65UgGLe8jAKeb0NGhpN94+WEvESzdTbke6BrxFmpZL6eg2m3xLWdLtQeaGWxISccSEFqrC41H0dsmBINMEK+dVeyDYGUR49lbA1bynkFXpUQq0DRs/R/zMCjUqnESYURXxS73Z7qLRlmnIFPeN5Bm/fvU0hNeEYzzXod/w2qIXtuu3zvYNBf0Err3BiVIghiyhdBp+cwcpRHQOapHstT7n9hRHh/3Z6Uw0YwhpUc3Oa4Fbf5PszMuwu/piS3+K7IcYz/Es5DswNQ7cMlCsn+ZGS2X7JYqYR3h8Q3PZfMxc/xA6BvpfOhsowVGnWNQ== x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?PI61FRmES/ZbyRdCI9SMRnV+Sxtz/1K6vPD1xd4AsqzBDyQ9LlxPTtmmIwjW?= =?us-ascii?Q?xyTVvK9DmjOxXFTpV9jO9zC+A/f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TPeOaaM+Wam4VjvZ8G+lK94e9Se9u7qHQkm/4i/tSmVTpNH0?= =?us-ascii?Q?XobzRpkm5VADjJzXvG+WZPUBKmxuYVQnwoxW/lL/9k0ZUzMAv3D81y1m3ye1?= =?us-ascii?Q?l5vM9/Sd2xgI9MwbrIGR/U5r6lb2lUH4JYMb07wkO570BmXDJGGPw2r9KUsn?= =?us-ascii?Q?26YtpkEked6I+gG5/6w/1TteEUprZaY30PYH46X8cGk5pBcE0dhTH10PmHU8?= =?us-ascii?Q?p8WPTD6fytMXfKfBXX3gQYdV9khg5UUju2w82ELVevJITPJhbEMQSWlfSroS?= =?us-ascii?Q?1TGEGnWJD02+Fbxlrx1+TfaODe9BI+/xlvcjZ3ECCQ/dqiYuYnI41cGQFkJp?= =?us-ascii?Q?OjcFSA5C0XqK697IkUUVuGeAtz35i4SU26HkNtWZuNRA975FGBzXlw95kEnq?= =?us-ascii?Q?8hIFcAWyum8VVoIm+ylfQ/sRJ0bdIi3ucwCvz0Rztxj6i6+KqbK1Rt5VLBLT?= =?us-ascii?Q?l4I/JTo+UDr2/W7tThkEXtmbxwvb6PXTZRXQPUdBLivWf5uVkHhYV9FrcfX6?= =?us-ascii?Q?0VjTyc778YH4ysd7uee07SGtMQWEkNzRCXAlv8Qg+Pz41zoy9xOT20fo8Ibs?= =?us-ascii?Q?7A/wjCb1X6xbicSbjcU=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN6PR11MB8244.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 79542b80-f9e8-4b26-032a-08dc26f1208f X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Feb 2024 08:53:45.4796 (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: B+7XALzFUhBBuBdRy9PwDMtn9lWpxmGXsyLhWem1rpV8SKzd9BrrdxvOMvw07tz8IysnUxA7leKkxeu3g4zHHQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB7351 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: 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,ray.ni@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: ryXNtCoUuJdVjJQ7MIiaP3Uzx7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=W1URO3Fd; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}") Merged through https://github.com/tianocore/edk2/pull/5347 Thanks, Ray > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Wu, > Jiaxin > Sent: Tuesday, February 6, 2024 12:53 PM > To: devel@edk2.groups.io; Tan, Dun > Subject: Re: [edk2-devel] [Patch V2 0/3] Fix potential issue in CpuPageTa= bleLib > and SMM page table initialization >=20 > Series Reviewed-by: Jiaxin Wu >=20 >=20 > > -----Original Message----- > > From: devel@edk2.groups.io On Behalf Of duntan > > Sent: Tuesday, February 6, 2024 9:58 AM > > To: devel@edk2.groups.io > > Subject: [edk2-devel] [Patch V2 0/3] Fix potential issue in CpuPageTabl= eLib > > and SMM page table initialization > > > > In V2 patch set, only the order of 2 lines of code was adjusted. > > > > Original description: > > This patch set is to fix potential issue in CpuPageTableLib and SMM pag= e > table > > initialization > > > > The first patch "UefiCpuPkg: Reduce and optimize access to attribute" i= s to > > reduce and optimize access to > > attribute in page table modification code in CpuPageTableLib. > > > > The patch "UefiCpuPkg: Add more Paging mode enumeration" and " > > UefiCpuPkg/PiSmmCpuDxeSmm:Map SMRAM in 4K page granularity" > > is to map SMRAM in 4K page granularity during SMM page table > > initialization(SmmInitPageTable). > > This is to avoid the SMRAM paging-structure layout change(page split) w= hen > > SMM ready to lock (PerformRemainingTasks). > > > > Dun Tan (2): > > UefiCpuPkg: Add more Paging mode enumeration > > UefiCpuPkg/PiSmmCpuDxeSmm:Map SMRAM in 4K page granularity > > > > Zhou Jianfeng (1): > > UefiCpuPkg: Reduce and optimize access to attribute > > > > UefiCpuPkg/Include/Library/CpuPageTableLib.h | 8 +++++++- > > UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c | 86 > > +++++++++++++++++++++++++++++++++++++++++++++++++++++------- > -- > > ------------------------ > > UefiCpuPkg/PiSmmCpuDxeSmm/SmmCpuMemoryManagement.c | 116 > > > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ > > ++++++++++++++++++++++++++++++++++------------------------ > > 3 files changed, 152 insertions(+), 58 deletions(-) > > > > -- > > 2.31.1.windows.1 > > > > > > > > > > >=20 >=20 >=20 >=20 >=20 -=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 (#115152): https://edk2.groups.io/g/devel/message/115152 Mute This Topic: https://groups.io/mt/104191038/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-