From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mx.groups.io with SMTP id smtpd.web10.11754.1671596550918694566 for ; Tue, 20 Dec 2022 20:22:31 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=MFnBzSXn; spf=pass (domain: intel.com, ip: 192.55.52.136, mailfrom: dun.tan@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1671596550; x=1703132550; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=yuxEmR01O6nPGM0dQE9pEJGbtxUGx3bp+lNyno8oca8=; b=MFnBzSXnKL48zq8Tai4MbkR00yzqD1KmrRoVvt1SyGKHWCJB4IT5CiRW vrplmokF1MexrIvGcd5Aw6odEasnkHGsWrajSgVpD94Hq42GBbQ7gbI6m K2KWe0QEI0FCL9Ga4D2jPZe5kmVWZ/6QGEh611OdprIxmm0/42oZDQCC5 fvqw+NKnH/jse+OoCXQlW5Z8j0D5+rXGfe1Lhtx5iGn7EwOJ3VQ+2ezkF UFxwTunrRz3/GNxSxime1ZxphYfw3wLC1lLN1DSnEWgBfkzNf1YAc7NA6 u7nBhbp6DUcbrSJGpqL4R36t8ciBzfXpaw16IK+OcZQObXTdAjl1L7E+1 A==; X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="299458183" X-IronPort-AV: E=Sophos;i="5.96,261,1665471600"; d="scan'208";a="299458183" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2022 20:22:30 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10567"; a="681893567" X-IronPort-AV: E=Sophos;i="5.96,261,1665471600"; d="scan'208";a="681893567" Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.182.152]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Dec 2022 20:22:29 -0800 From: "duntan" To: devel@edk2.groups.io Subject: [Patch V2 0/3] Introduce page table pool mechanism in SMM page table Date: Wed, 21 Dec 2022 12:21:53 +0800 Message-Id: <20221221042156.280-1-dun.tan@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 1.Introduce page table pool mechanism in SMM page table In V2 patch, add code to disable CET before disable CR0.WP 2.Remove unused API in SmmCpuFeaturesLib.h 3.Simplify the code to set smm page table as RO In V2 patch, remove unneeded code to align pool address and add some comments when marking whole page table pool as read only. Dun Tan (3): UefiCpuPkg/PiSmmCpuDxeSmm: Introduce page table pool mechanism UefiCpuPkg: Remove unused API in SmmCpuFeaturesLib.h UefiCpuPkg: Simplify the code to set smm page table as RO UefiCpuPkg/Include/Library/SmmCpuFeaturesLib.h | 25 ------------------------- UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/PageTbl.c | 121 ------------------------------------------------------------------------------------------------------------------------- UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | 30 ------------------------------ UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | 30 ++++++++++++++++++++++++++++++ UefiCpuPkg/PiSmmCpuDxeSmm/SmmCpuMemoryManagement.c | 273 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c | 169 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- 6 files changed, 303 insertions(+), 345 deletions(-) -- 2.31.1.windows.1