[edk2-devel] [Patch V4 0/8] Put APs in 64 bit mode before handoff to OS.

Yuanhao Xie posted 8 patches 1 year ago
Failed in applying to current master (apply log)
OvmfPkg/AmdSev/AmdSevX64.dsc                        |   3 ++-
OvmfPkg/CloudHv/CloudHvX64.dsc                      |   3 ++-
OvmfPkg/IntelTdx/IntelTdxX64.dsc                    |   4 +++-
OvmfPkg/Microvm/MicrovmX64.dsc                      |   3 ++-
OvmfPkg/OvmfPkgIa32X64.dsc                          |   3 ++-
OvmfPkg/OvmfPkgX64.dsc                              |   4 +++-
OvmfPkg/OvmfXen.dsc                                 |   3 ++-
UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf       |   6 +++++-
UefiCpuPkg/Library/MpInitLib/DxeMpLib.c             | 153 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------
UefiCpuPkg/Library/MpInitLib/Ia32/CreatePageTable.c |  23 +++++++++++++++++++++++
UefiCpuPkg/Library/MpInitLib/Ia32/MpFuncs.nasm      |  26 +++++++++++++-------------
UefiCpuPkg/Library/MpInitLib/MpEqu.inc              |  22 ++++++++++++----------
UefiCpuPkg/Library/MpInitLib/MpLib.h                |  52 ++++++++++++++++++++++++++++++++++++++++++++++++----
UefiCpuPkg/Library/MpInitLib/X64/AmdSev.nasm        | 170 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c  |  82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm       | 198 ++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------
UefiPayloadPkg/UefiPayloadPkg.dsc                   |   3 ++-
17 files changed, 504 insertions(+), 254 deletions(-)
create mode 100644 UefiCpuPkg/Library/MpInitLib/Ia32/CreatePageTable.c
create mode 100644 UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c
[edk2-devel] [Patch V4 0/8] Put APs in 64 bit mode before handoff to OS.
Posted by Yuanhao Xie 1 year ago
The purpose of this patch series is to put the APs in 64-bit mode 
before handing off the boot process to the OS, AMD 64-bit processors 
with SEV-ES follows the original logic.

Ref:https://bugzilla.tianocore.org/show_bug.cgi?id=4234

Yuanhao Xie (8):
  UefiCpuPkg: Check AP_SAFE_STACK_SIZE during build time.
  UefiCpuPkg: Split the path in RelocateApLoop into two.
  UefiCpuPkg: Allocate contiguous memory for stacks and APs loop.
  OvmfPkg: Add CpuPageTableLib required by MpInitLib.
  UefiPayloadPkg: Add CpuPageTableLib required by MpInitLib.
  UefiCpuPkg: Put APs in 64 bit mode before handoff to OS.
  UefiCpuPkg: Rename AsmRelocateApLoopStart.
  UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to
    AmdSev.nasm

 OvmfPkg/AmdSev/AmdSevX64.dsc                        |   3 ++-
 OvmfPkg/CloudHv/CloudHvX64.dsc                      |   3 ++-
 OvmfPkg/IntelTdx/IntelTdxX64.dsc                    |   4 +++-
 OvmfPkg/Microvm/MicrovmX64.dsc                      |   3 ++-
 OvmfPkg/OvmfPkgIa32X64.dsc                          |   3 ++-
 OvmfPkg/OvmfPkgX64.dsc                              |   4 +++-
 OvmfPkg/OvmfXen.dsc                                 |   3 ++-
 UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf       |   6 +++++-
 UefiCpuPkg/Library/MpInitLib/DxeMpLib.c             | 153 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------
 UefiCpuPkg/Library/MpInitLib/Ia32/CreatePageTable.c |  23 +++++++++++++++++++++++
 UefiCpuPkg/Library/MpInitLib/Ia32/MpFuncs.nasm      |  26 +++++++++++++-------------
 UefiCpuPkg/Library/MpInitLib/MpEqu.inc              |  22 ++++++++++++----------
 UefiCpuPkg/Library/MpInitLib/MpLib.h                |  52 ++++++++++++++++++++++++++++++++++++++++++++++++----
 UefiCpuPkg/Library/MpInitLib/X64/AmdSev.nasm        | 170 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c  |  82 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm       | 198 ++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------
 UefiPayloadPkg/UefiPayloadPkg.dsc                   |   3 ++-
 17 files changed, 504 insertions(+), 254 deletions(-)
 create mode 100644 UefiCpuPkg/Library/MpInitLib/Ia32/CreatePageTable.c
 create mode 100644 UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c

-- 
2.36.1.windows.1



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#100571): https://edk2.groups.io/g/devel/message/100571
Mute This Topic: https://groups.io/mt/97309030/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [Patch V4 0/8] Put APs in 64 bit mode before handoff to OS.
Posted by Ni, Ray 1 year ago
Reviewed-by: Ray Ni <ray.ni@intel.com>

> -----Original Message-----
> From: devel@edk2.groups.io <devel@edk2.groups.io> On Behalf Of
> Yuanhao Xie
> Sent: Wednesday, March 1, 2023 2:10 PM
> To: devel@edk2.groups.io
> Subject: [edk2-devel] [Patch V4 0/8] Put APs in 64 bit mode before handoff
> to OS.
> 
> The purpose of this patch series is to put the APs in 64-bit mode
> before handing off the boot process to the OS, AMD 64-bit processors
> with SEV-ES follows the original logic.
> 
> Ref:https://bugzilla.tianocore.org/show_bug.cgi?id=4234
> 
> Yuanhao Xie (8):
>   UefiCpuPkg: Check AP_SAFE_STACK_SIZE during build time.
>   UefiCpuPkg: Split the path in RelocateApLoop into two.
>   UefiCpuPkg: Allocate contiguous memory for stacks and APs loop.
>   OvmfPkg: Add CpuPageTableLib required by MpInitLib.
>   UefiPayloadPkg: Add CpuPageTableLib required by MpInitLib.
>   UefiCpuPkg: Put APs in 64 bit mode before handoff to OS.
>   UefiCpuPkg: Rename AsmRelocateApLoopStart.
>   UefiCpuPkg: Move AsmRelocateApLoopStart from Mpfuncs.nasm to
>     AmdSev.nasm
> 
>  OvmfPkg/AmdSev/AmdSevX64.dsc                        |   3 ++-
>  OvmfPkg/CloudHv/CloudHvX64.dsc                      |   3 ++-
>  OvmfPkg/IntelTdx/IntelTdxX64.dsc                    |   4 +++-
>  OvmfPkg/Microvm/MicrovmX64.dsc                      |   3 ++-
>  OvmfPkg/OvmfPkgIa32X64.dsc                          |   3 ++-
>  OvmfPkg/OvmfPkgX64.dsc                              |   4 +++-
>  OvmfPkg/OvmfXen.dsc                                 |   3 ++-
>  UefiCpuPkg/Library/MpInitLib/DxeMpInitLib.inf       |   6 +++++-
>  UefiCpuPkg/Library/MpInitLib/DxeMpLib.c             | 153
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> +++++++++++++++++++++++++++++++++-----------------------------------------
> ---------------------
>  UefiCpuPkg/Library/MpInitLib/Ia32/CreatePageTable.c |  23
> +++++++++++++++++++++++
>  UefiCpuPkg/Library/MpInitLib/Ia32/MpFuncs.nasm      |  26
> +++++++++++++-------------
>  UefiCpuPkg/Library/MpInitLib/MpEqu.inc              |  22 ++++++++++++---------
> -
>  UefiCpuPkg/Library/MpInitLib/MpLib.h                |  52
> ++++++++++++++++++++++++++++++++++++++++++++++++----
>  UefiCpuPkg/Library/MpInitLib/X64/AmdSev.nasm        | 170
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c  |  82
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> ++++++++++++++++++++++++
>  UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm       | 198
> ++++++++++++++++++++++++++++++++++++++++++--------------------------
> ----------------------------------------------------------------------------------------------
> ------------------------------------
>  UefiPayloadPkg/UefiPayloadPkg.dsc                   |   3 ++-
>  17 files changed, 504 insertions(+), 254 deletions(-)
>  create mode 100644 UefiCpuPkg/Library/MpInitLib/Ia32/CreatePageTable.c
>  create mode 100644 UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c
> 
> --
> 2.36.1.windows.1
> 
> 
> 
> 
> 



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#100787): https://edk2.groups.io/g/devel/message/100787
Mute This Topic: https://groups.io/mt/97309030/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/leave/3901457/1787277/102458076/xyzzy [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-
Re: [edk2-devel] [Patch V4 0/8] Put APs in 64 bit mode before handoff to OS.
Posted by Gerd Hoffmann 1 year ago
On Wed, Mar 01, 2023 at 02:09:46PM +0800, Yuanhao Xie wrote:
> The purpose of this patch series is to put the APs in 64-bit mode 
> before handing off the boot process to the OS, AMD 64-bit processors 
> with SEV-ES follows the original logic.
> 
> Ref:https://bugzilla.tianocore.org/show_bug.cgi?id=4234

Acked-by: Gerd Hoffmann <kraxel@redhat.com>
Tested-by: Gerd Hoffmann <kraxel@redhat.com>



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