[edk2-devel] [Patch V4 0/8] Create page table by CpuPageTableLib in DxeIpl

duntan posted 8 patches 1 year, 2 months ago
Only 2 patches received!
EmulatorPkg/EmulatorPkg.dsc                              |   3 ++-
IntelFsp2Pkg/Tools/Tests/QemuFspPkg.dsc                  |   3 ++-
MdeModulePkg/Core/DxeIplPeim/DxeIpl.h                    |   3 ++-
MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf                  |   5 ++++-
MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c          | 112 ++++------------------------------------------------------------------------------------------------------------
MdeModulePkg/Core/DxeIplPeim/X64/DxeLoadFunc.c           |   5 +++--
MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c         | 720 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.h         | 182 ++++++++++----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
MdeModulePkg/MdeModulePkg.dsc                            |   3 ++-
{UefiCpuPkg => MdePkg}/Include/Library/CpuPageTableLib.h |   0
MdePkg/MdePkg.dec                                        |   5 ++++-
OvmfPkg/AmdSev/AmdSevX64.dsc                             |   2 +-
OvmfPkg/Bhyve/BhyveX64.dsc                               |   3 ++-
OvmfPkg/CloudHv/CloudHvX64.dsc                           |   2 +-
OvmfPkg/Microvm/MicrovmX64.dsc                           |   2 +-
OvmfPkg/OvmfPkgIa32.dsc                                  |   3 ++-
OvmfPkg/OvmfPkgIa32X64.dsc                               |   2 +-
OvmfPkg/OvmfPkgX64.dsc                                   |   2 +-
OvmfPkg/OvmfXen.dsc                                      |   2 +-
UefiCpuPkg/UefiCpuPkg.dec                                |   3 ---
20 files changed, 211 insertions(+), 851 deletions(-)
rename {UefiCpuPkg => MdePkg}/Include/Library/CpuPageTableLib.h (100%)
[edk2-devel] [Patch V4 0/8] Create page table by CpuPageTableLib in DxeIpl
Posted by duntan 1 year, 2 months ago
In V4 patch set:
Comparing to V3, only fix the spelling from 'defination' to 'definition' in the commit message of 'MdePkg: Move CpuPageTableLib definition to MdePkg'. So only resend the two patches which need to be reviewed.

1. A new patch 'MdePkg: Move CpuPageTableLib definition to MdePkg' to move CpuPageTableLib definition from UefiCpuPkg to MdePkg.
2. Patch 'MdeModulePkg/DxeIpl: Create page table by CpuPageTableLib' has been modified to set GHCB page to be mapped as unencrypted for each CPU for AMD SEV feature.

Other patches in this patch set have been reviewed.

Dun Tan (8):
  MdePkg: Move CpuPageTableLib definition to MdePkg
  EmulatorPkg: Add CpuPageTableLib required by DxeIpl in DSC
  IntelFsp2Pkg: Add CpuPageTableLib required by DxeIpl in DSC
  MdeModulePkg: Add CpuPageTableLib required by DxeIpl in DSC
  OvmfPkg: Add CpuPageTableLib required by DxeIpl in DSC file
  MdeModulePkg/DxeIpl: Create page table by CpuPageTableLib
  MdeModulePkg/DxeIpl: Remove duplicated code to enable NX
  MdeModulePkg/DxeIpl: Refinement to the code to set PageTable as RO

 EmulatorPkg/EmulatorPkg.dsc                              |   3 ++-
 IntelFsp2Pkg/Tools/Tests/QemuFspPkg.dsc                  |   3 ++-
 MdeModulePkg/Core/DxeIplPeim/DxeIpl.h                    |   3 ++-
 MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf                  |   5 ++++-
 MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c          | 112 ++++------------------------------------------------------------------------------------------------------------
 MdeModulePkg/Core/DxeIplPeim/X64/DxeLoadFunc.c           |   5 +++--
 MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c         | 720 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.h         | 182 ++++++++++----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
 MdeModulePkg/MdeModulePkg.dsc                            |   3 ++-
 {UefiCpuPkg => MdePkg}/Include/Library/CpuPageTableLib.h |   0
 MdePkg/MdePkg.dec                                        |   5 ++++-
 OvmfPkg/AmdSev/AmdSevX64.dsc                             |   2 +-
 OvmfPkg/Bhyve/BhyveX64.dsc                               |   3 ++-
 OvmfPkg/CloudHv/CloudHvX64.dsc                           |   2 +-
 OvmfPkg/Microvm/MicrovmX64.dsc                           |   2 +-
 OvmfPkg/OvmfPkgIa32.dsc                                  |   3 ++-
 OvmfPkg/OvmfPkgIa32X64.dsc                               |   2 +-
 OvmfPkg/OvmfPkgX64.dsc                                   |   2 +-
 OvmfPkg/OvmfXen.dsc                                      |   2 +-
 UefiCpuPkg/UefiCpuPkg.dec                                |   3 ---
 20 files changed, 211 insertions(+), 851 deletions(-)
 rename {UefiCpuPkg => MdePkg}/Include/Library/CpuPageTableLib.h (100%)

-- 
2.31.1.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#103474): https://edk2.groups.io/g/devel/message/103474
Mute This Topic: https://groups.io/mt/98467032/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-