[edk2-devel] [PATCH v1 0/3] Target to enable paging from temporary RAM Done

Wu, Jiaxin posted 3 patches 11 months, 3 weeks ago
Failed in applying to current master (apply log)
There is a newer version of this series
MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c |  39 ++--
UefiCpuPkg/CpuMpPei/CpuMpPei.h                   |   1 +
UefiCpuPkg/CpuMpPei/CpuMpPei.inf                 |   1 +
UefiCpuPkg/CpuMpPei/CpuPaging.c                  | 228 ++++++++++-------------
UefiCpuPkg/SecCore/SecCore.inf                   |   1 +
UefiCpuPkg/SecCore/SecCoreNative.inf             |   1 +
UefiCpuPkg/SecCore/SecMain.c                     | 164 ++++++++++++++++
UefiCpuPkg/SecCore/SecMain.h                     |   4 +
8 files changed, 299 insertions(+), 140 deletions(-)
[edk2-devel] [PATCH v1 0/3] Target to enable paging from temporary RAM Done
Posted by Wu, Jiaxin 11 months, 3 weeks ago
For arch X64, system will enable the page table in SPI to cover 0-512G
range via CR4.PAE & MSR.LME & CR0.PG & CR3 setting. Existing code doesn't
cover the higher address access above 512G before memory-discovered
callback. This series patches provide the solution to enable paging from
temporary RAM Done.

Jiaxin Wu (3):
  UefiCpuPkg/SecCore: Migrate page table to permanent memory
  UefiCpuPkg/CpuMpPei: Enable PAE page table if CR0.PG is not set
  MdeModulePkg/DxeIpl: Align Page table Level setting with previous
    level.

 MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c |  39 ++--
 UefiCpuPkg/CpuMpPei/CpuMpPei.h                   |   1 +
 UefiCpuPkg/CpuMpPei/CpuMpPei.inf                 |   1 +
 UefiCpuPkg/CpuMpPei/CpuPaging.c                  | 228 ++++++++++-------------
 UefiCpuPkg/SecCore/SecCore.inf                   |   1 +
 UefiCpuPkg/SecCore/SecCoreNative.inf             |   1 +
 UefiCpuPkg/SecCore/SecMain.c                     | 164 ++++++++++++++++
 UefiCpuPkg/SecCore/SecMain.h                     |   4 +
 8 files changed, 299 insertions(+), 140 deletions(-)

-- 
2.16.2.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#104360): https://edk2.groups.io/g/devel/message/104360
Mute This Topic: https://groups.io/mt/98780499/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH v1 0/3] Target to enable paging from temporary RAM Done
Posted by Gerd Hoffmann 11 months, 3 weeks ago
On Tue, May 09, 2023 at 06:22:50PM +0800, Wu, Jiaxin wrote:
> For arch X64, system will enable the page table in SPI to cover 0-512G
> range via CR4.PAE & MSR.LME & CR0.PG & CR3 setting. Existing code doesn't
> cover the higher address access above 512G before memory-discovered
> callback. This series patches provide the solution to enable paging from
> temporary RAM Done.
> 
> Jiaxin Wu (3):
>   UefiCpuPkg/SecCore: Migrate page table to permanent memory
>   UefiCpuPkg/CpuMpPei: Enable PAE page table if CR0.PG is not set
>   MdeModulePkg/DxeIpl: Align Page table Level setting with previous
>     level.

Fails to build OvmfPkg/OvmfPkgX64.dsc

Please run this through CI before sending out the patches.

thanks,
  Gerd



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#104384): https://edk2.groups.io/g/devel/message/104384
Mute This Topic: https://groups.io/mt/98780499/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [PATCH v1 0/3] Target to enable paging from temporary RAM Done
Posted by Wu, Jiaxin 11 months, 3 weeks ago
I will fix it in  next version. Thanks comments.

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of Gerd
> Hoffmann
> Sent: Tuesday, May 9, 2023 10:47 PM
> To: devel@edk2.groups.io; Wu, Jiaxin <jiaxin.wu@intel.com>
> Subject: Re: [edk2-devel] [PATCH v1 0/3] Target to enable paging from
> temporary RAM Done
> 
> On Tue, May 09, 2023 at 06:22:50PM +0800, Wu, Jiaxin wrote:
> > For arch X64, system will enable the page table in SPI to cover 0-512G
> > range via CR4.PAE & MSR.LME & CR0.PG & CR3 setting. Existing code doesn't
> > cover the higher address access above 512G before memory-discovered
> > callback. This series patches provide the solution to enable paging from
> > temporary RAM Done.
> >
> > Jiaxin Wu (3):
> >   UefiCpuPkg/SecCore: Migrate page table to permanent memory
> >   UefiCpuPkg/CpuMpPei: Enable PAE page table if CR0.PG is not set
> >   MdeModulePkg/DxeIpl: Align Page table Level setting with previous
> >     level.
> 
> Fails to build OvmfPkg/OvmfPkgX64.dsc
> 
> Please run this through CI before sending out the patches.
> 
> thanks,
>   Gerd
> 
> 
> 
> 
> 



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