From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (using TLSv1 with cipher CAMELLIA256-SHA (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id E382581CF3 for ; Wed, 2 Nov 2016 23:56:02 -0700 (PDT) Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga104.fm.intel.com with ESMTP; 02 Nov 2016 23:55:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,585,1473145200"; d="scan'208";a="26909739" Received: from fmsmsx106.amr.corp.intel.com ([10.18.124.204]) by fmsmga005.fm.intel.com with ESMTP; 02 Nov 2016 23:55:50 -0700 Received: from fmsmsx112.amr.corp.intel.com (10.18.116.6) by FMSMSX106.amr.corp.intel.com (10.18.124.204) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 2 Nov 2016 23:55:50 -0700 Received: from shsmsx101.ccr.corp.intel.com (10.239.4.153) by FMSMSX112.amr.corp.intel.com (10.18.116.6) with Microsoft SMTP Server (TLS) id 14.3.248.2; Wed, 2 Nov 2016 23:55:49 -0700 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.206]) by SHSMSX101.ccr.corp.intel.com ([169.254.1.104]) with mapi id 14.03.0248.002; Thu, 3 Nov 2016 14:55:47 +0800 From: "Yao, Jiewen" To: "Yao, Jiewen" , "edk2-devel@lists.01.org" CC: "Kinney, Michael D" , "Tian, Feng" , Laszlo Ersek , "Fan, Jeff" , "Zeng, Star" Thread-Topic: [edk2] [PATCH 0/6] Enable SMM page level protection. Thread-Index: AQHSNZ8YswckCVz0V0usOM0dRj4P2qDG0xqg Date: Thu, 3 Nov 2016 06:55:46 +0000 Message-ID: <74D8A39837DF1E4DA445A8C0B3885C50386BD64D@shsmsx102.ccr.corp.intel.com> References: <1478156028-21572-1-git-send-email-jiewen.yao@intel.com> In-Reply-To: <1478156028-21572-1-git-send-email-jiewen.yao@intel.com> Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] MIME-Version: 1.0 Subject: Re: [PATCH 0/6] Enable SMM page level protection. X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Nov 2016 06:56:03 -0000 Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable I forget to mention - the whole series is also pushed to https://github.com= /jyao1/edk2, SmmProtection_V1 branch. You can also review the code there. Thank you Yao Jiewen > -----Original Message----- > From: edk2-devel [mailto:edk2-devel-bounces@lists.01.org] On Behalf Of > Jiewen Yao > Sent: Thursday, November 3, 2016 2:54 PM > To: edk2-devel@lists.01.org > Cc: Kinney, Michael D ; Tian, Feng > ; Laszlo Ersek ; Fan, Jeff > ; Zeng, Star > Subject: [edk2] [PATCH 0/6] Enable SMM page level protection. >=20 > This series patch enables SMM page level protection. > Features are: > 1) PiSmmCore reports SMM PE image code/data information > in EdkiiPiSmmMemoryAttributeTable, if the SMM image is page aligned. > 2) PiSmmCpu consumes EdkiiPiSmmMemoryAttributeTable > and set XD for data page and RO for code page. > 3) PiSmmCpu enables Static Paging for X64 according to > PcdCpuSmmStaticPageTable. If it is true, 1G paging for above 4G > is used as long as it is supported. > 4) PiSmmCpu sets importance data structure to be read only, > such as Gdt, Idt, SmmEntrypoint, and PageTable itself. >=20 > tested platform: > 1) Intel internal platform (X64). > 2) EDKII Quark IA32 > 3) EDKII Vlv2 X64 > 4) EDKII OVMF IA32 and IA32X64. >=20 > Cc: Jeff Fan > Cc: Feng Tian > Cc: Star Zeng > Cc: Michael D Kinney > Cc: Laszlo Ersek > Contributed-under: TianoCore Contribution Agreement 1.0 > Signed-off-by: Jiewen Yao >=20 > Jiewen Yao (6): > MdeModulePkg/Include: Add PiSmmMemoryAttributesTable.h > MdeModulePkg/dec: Add gEdkiiPiSmmMemoryAttributesTableGuid. > MdeModulePkg/PiSmmCore: Add MemoryAttributes support. > UefiCpuPkg/dec: Add PcdCpuSmmStaticPageTable. > UefiCpuPkg/PiSmmCpuDxeSmm: Add paging protection. > QuarkPlatformPkg/dsc: enable Smm paging protection. >=20 > MdeModulePkg/Core/PiSmmCore/Dispatcher.c | 66 + > MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c | 1509 > ++++++++++++++++++++ > MdeModulePkg/Core/PiSmmCore/Page.c | 775 > +++++++++- > MdeModulePkg/Core/PiSmmCore/PiSmmCore.c | 40 > + > MdeModulePkg/Core/PiSmmCore/PiSmmCore.h | 91 > ++ > MdeModulePkg/Core/PiSmmCore/PiSmmCore.inf | 2 > + > MdeModulePkg/Core/PiSmmCore/Pool.c | 16 > + > MdeModulePkg/Include/Guid/PiSmmMemoryAttributesTable.h | 51 + > MdeModulePkg/MdeModulePkg.dec | > 3 + > QuarkPlatformPkg/Quark.dsc | 6 + > UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/PageTbl.c | 71 > +- > UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.S | 67 > +- > UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.asm | 68 > +- > UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiEntry.nasm | 70 > +- > UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiException.S | 226 > +-- > UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiException.asm | 36 > +- > UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmiException.nasm | 36 > +- > UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmmFuncsArch.c | 37 > +- > UefiCpuPkg/PiSmmCpuDxeSmm/Ia32/SmmProfileArch.c | 4 > +- > UefiCpuPkg/PiSmmCpuDxeSmm/MpService.c | 110 > +- > UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c | > 142 +- > UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.h | > 156 +- > UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.inf | > 5 +- > UefiCpuPkg/PiSmmCpuDxeSmm/SmmCpuMemoryManagement.c | > 872 +++++++++++ > UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.c | 39 > +- > UefiCpuPkg/PiSmmCpuDxeSmm/SmmProfile.h | 15 > +- > UefiCpuPkg/PiSmmCpuDxeSmm/X64/PageTbl.c | 272 > +++- > UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.S | 51 > +- > UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.asm | 54 > +- > UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiEntry.nasm | 61 > +- > UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiException.S | 250 > +--- > UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiException.asm | 35 > +- > UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmiException.nasm | 31 > +- > UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmmFuncsArch.c | 30 > +- > UefiCpuPkg/PiSmmCpuDxeSmm/X64/SmmProfileArch.c | 6 > +- > UefiCpuPkg/UefiCpuPkg.dec | 8 + > 36 files changed, 4513 insertions(+), 798 deletions(-) > create mode 100644 > MdeModulePkg/Core/PiSmmCore/MemoryAttributesTable.c > create mode 100644 > MdeModulePkg/Include/Guid/PiSmmMemoryAttributesTable.h > create mode 100644 > UefiCpuPkg/PiSmmCpuDxeSmm/SmmCpuMemoryManagement.c >=20 > -- > 2.7.4.windows.1 >=20 > _______________________________________________ > edk2-devel mailing list > edk2-devel@lists.01.org > https://lists.01.org/mailman/listinfo/edk2-devel