From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: intel.com, ip: 134.134.136.65, mailfrom: ray.ni@intel.com) Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by groups.io with SMTP; Wed, 31 Jul 2019 23:51:21 -0700 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 31 Jul 2019 23:51:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.64,333,1559545200"; d="scan'208";a="163519210" Received: from ray-dev.ccr.corp.intel.com ([10.239.9.9]) by orsmga007.jf.intel.com with ESMTP; 31 Jul 2019 23:51:20 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Subject: [PATCH v3 0/6] Support 5-level paging in DXE long mode Date: Thu, 1 Aug 2019 14:50:33 +0800 Message-Id: <20190801065039.228080-1-ray.ni@intel.com> X-Mailer: git-send-email 2.21.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit v3: Move UefiCpuPkg/Include/Register/Cpuid.h to MdePkg/Include/Register/Intel/ directory. Create UefiCpuPkg/Include/Register/Cpuid.h to include MdePkg/Include/Register/Intel/Cpuid.h. NOTE: Changes like moving Amd/Cpuid.h to MdePkg is not included. Changes like updating BaseLib.h to include Cpuid.h is not included. v2: Refined the patch according to reviewers' all comments except: 0A0h cannot be changed to A0h or build fails. A big change in this patch is Cpuid.h is moved from UefiCpuPkg to MdePkg. The move is based on real requirement when certain modules that cannot depend on UefiCpuPkg but needs to reference structures defined in SDM. Ray Ni (6): UefiCpuPkg/MpInitLib: Enable 5-level paging for AP when BSP's enabled UefiCpuPkg/CpuDxe: Remove unnecessary macros UefiCpuPkg/CpuDxe: Support parsing 5-level page table MdeModulePkg/DxeIpl: Introduce PCD PcdUse5LevelPageTable MdePkg/Cpuid.h: Move Cpuid.h from UefiCpuPkg to MdePkg MdeModulePkg/DxeIpl: Create 5-level page table for long mode MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf | 1 + .../Core/DxeIplPeim/X64/VirtualMemory.c | 229 +- MdeModulePkg/MdeModulePkg.dec | 7 + MdeModulePkg/MdeModulePkg.uni | 8 + .../Include/Register/Intel}/Cpuid.h | 6 +- UefiCpuPkg/CpuDxe/CpuPageTable.c | 59 +- UefiCpuPkg/CpuDxe/CpuPageTable.h | 3 +- UefiCpuPkg/Include/Register/Cpuid.h | 3985 +---------------- UefiCpuPkg/Library/MpInitLib/MpLib.c | 13 + UefiCpuPkg/Library/MpInitLib/MpLib.h | 6 +- UefiCpuPkg/Library/MpInitLib/X64/MpEqu.inc | 3 +- UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm | 14 +- 12 files changed, 249 insertions(+), 4085 deletions(-) copy {UefiCpuPkg/Include/Register => MdePkg/Include/Register/Intel}/Cpuid.h (96%) -- 2.21.0.windows.1