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 1B6F1AC082A for ; Tue, 6 Feb 2024 01:58:15 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=BjXRZI5O9RCJOlzG6cSjz+0wCXfq2ZylVfYmuGK89/Q=; c=relaxed/simple; d=groups.io; h=From:To:Subject:Date:Message-Id:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1707184694; v=1; b=DeQJPZxnO44iMuC9nunJua733hFW8oHzt4BLf+4yAV7j/5Z4Ga8Q+hEerluPClkNFEbcpZVq lSNwZNuQ0UBcyMMco6alRlREacPxARZK4+V73oYpCupCp8wtYoq3vuLBkqgw0zJKoXcEIzamvKM Ji1/yI0HckNnUmt/8cGh4lmE= X-Received: by 127.0.0.2 with SMTP id ft41YY7687511xZn1dOndTc3; Mon, 05 Feb 2024 17:58:14 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mx.groups.io with SMTP id smtpd.web11.12552.1707184694246358540 for ; Mon, 05 Feb 2024 17:58:14 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10975"; a="18074362" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="18074362" X-Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 17:58:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10975"; a="909469790" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="909469790" X-Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.55.43]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 17:58:12 -0800 From: "duntan" To: devel@edk2.groups.io Subject: [edk2-devel] [Patch V2 0/3] Fix potential issue in CpuPageTableLib and SMM page table initialization Date: Tue, 6 Feb 2024 09:57:54 +0800 Message-Id: <20240206015757.1816-1-dun.tan@intel.com> MIME-Version: 1.0 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,dun.tan@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: mhpDsFDLPkDe5yJXsLI77phXx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=DeQJPZxn; 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 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 page table initialization The first patch "UefiCpuPkg: Reduce and optimize access to attribute" is 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) when 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 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115135): https://edk2.groups.io/g/devel/message/115135 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] -=-=-=-=-=-=-=-=-=-=-=-