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 21FFFAC16AD for ; Mon, 5 Feb 2024 14:04:57 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=MHmP7xcey4cm6TyMFbd5u5j3itUhGkzBPFPu0Af9++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=1707141896; v=1; b=Ut2BK9qQdEmaltk+2vh1ONEV2OEE5JMOestFpDdoMoTRLs5LarQgmPWccxpr8Vy9DrSAOTz1 gNUtetwp86QhY5ZL0SuIIgQ+xHy7cYMo/9J4OUgLB4POfGapLZ4iMrlffm6TgRqqPa7OMyw4N7M dsfRZfyNYcfdzpRUoTs79Hi0= X-Received: by 127.0.0.2 with SMTP id 0jcsYY7687511xCYU49lfEth; Mon, 05 Feb 2024 06:04:56 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by mx.groups.io with SMTP id smtpd.web10.63541.1707141895755632052 for ; Mon, 05 Feb 2024 06:04:55 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10974"; a="416770" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="416770" X-Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 06:04:55 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="5334798" X-Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.55.43]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 06:04:54 -0800 From: "duntan" To: devel@edk2.groups.io Subject: [edk2-devel] [PATCH 0/3] Fix potential issue in CpuPageTableLib and SMM page table initialization Date: Mon, 5 Feb 2024 22:03:42 +0800 Message-Id: <20240205140345.1437-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: HurMsP36e6osP3hy73Dg19rXx7686176AA= 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=Ut2BK9qQ; 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 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 (#115115): https://edk2.groups.io/g/devel/message/115115 Mute This Topic: https://groups.io/mt/104176229/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-