Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: d159e229132bb54a7fa18d3f6b19c9c6d7927e27
      
https://github.com/tianocore/edk2/commit/d159e229132bb54a7fa18d3f6b19c9c6d7927e27
  Author: Zhou Jianfeng <[email protected]>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
    M UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c

  Log Message:
  -----------
  UefiCpuPkg/CpuPageTableLib: Fix IN OUT parameters marked as IN

Some IN OUT parameters in CpuPageTableMap.c were mistakenly marked as IN.
"IN" replaced with "IN OUT" in the following interfaces:

PageTableLibSetPte4K(): Pte4K
PageTableLibSetPleB():  PleB
PageTableLibSetPle():   Ple
PageTableLibSetPnle():  Pnle

Reviewed-by: Ray Ni <[email protected]>
Signed-off-by: Zhou Jianfeng <[email protected]>
Cc: Ray Ni <[email protected]>
Cc: Laszlo Ersek <[email protected]>
Cc: Rahul Kumar <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>


  Commit: dcffad2491bc89bc4e7ea4de170c12b87e6e57fd
      
https://github.com/tianocore/edk2/commit/dcffad2491bc89bc4e7ea4de170c12b87e6e57fd
  Author: Zhou Jianfeng <[email protected]>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
    M UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c

  Log Message:
  -----------
  UefiCpuPkg/CpuPageTableLib: qualify page table accesses as volatile

Add volatile qualifier to page table related variable to prevent
compiler from optimizing away the variables which may lead to
unexpected result.

Signed-off-by: Zhou Jianfeng <[email protected]>
Cc: Ray Ni <[email protected]>
Cc: Laszlo Ersek <[email protected]>
Cc: Rahul Kumar <[email protected]>
Cc: Gerd Hoffmann <[email protected]>
Cc: Pedro Falcato <[email protected]>
Cc: Zhang Di <[email protected]>
Cc: Tan Dun <[email protected]>
Cc: Michael Brown <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Michael Brown <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
[[email protected]: reconstruct commit manually, from corrupt patch email
 on-list]


  Commit: ae1079b386a597108a8070652bf7cdaa4ec3dda3
      
https://github.com/tianocore/edk2/commit/ae1079b386a597108a8070652bf7cdaa4ec3dda3
  Author: Zhiguang Liu <[email protected]>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
    M MdeModulePkg/Core/PiSmmCore/Smi.c

  Log Message:
  -----------
  MdeModulePkg/SMM: Support to unregister SMI handler inside SMI handler

To support unregister SMI handler inside SMI handler itself,
get next node before SMI handler is executed, since LIST_ENTRY that
Link points to may be freed if unregister SMI handler in SMI handler
itself.

Cc: Liming Gao <[email protected]>
Cc: Jiaxin Wu <[email protected]>
Reviewed-by: Ray Ni <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Signed-off-by: Zhiguang Liu <[email protected]>
Message-Id: <[email protected]>


  Commit: 17b28722008eab745ce186b72cd325944cbe6bf0
      
https://github.com/tianocore/edk2/commit/17b28722008eab745ce186b72cd325944cbe6bf0
  Author: Zhiguang Liu <[email protected]>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
    M MdeModulePkg/Core/PiSmmCore/Smi.c

  Log Message:
  -----------
  MdeModulePkg/SMM: Disallow unregister SMI handler in other SMI handler

In last patch, we add code support to unregister SMI handler inside
itself. However, the code doesn't support unregister SMI handler
insider other SMI handler. While this is not a must-have usage.
So add check to disallow unregister SMI handler in other SMI handler.

Cc: Liming Gao <[email protected]>
Cc: Jiaxin Wu <[email protected]>
Cc: Ray Ni <[email protected]>
Cc: Laszlo Ersek <[email protected]>
Signed-off-by: Zhiguang Liu <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Ray Ni <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>


  Commit: 049ff6c39c73edd3709c05bd0e46184320471358
      
https://github.com/tianocore/edk2/commit/049ff6c39c73edd3709c05bd0e46184320471358
  Author: Zhiguang Liu <[email protected]>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
    M StandaloneMmPkg/Core/Mmi.c

  Log Message:
  -----------
  StandaloneMmPkg: Support to unregister MMI handler inside MMI handler

To support unregister MMI handler inside MMI handler itself,
get next node before MMI handler is executed, since LIST_ENTRY that
Link points to may be freed if unregister MMI handler in MMI handler
itself.

Cc: Liming Gao <[email protected]>
Cc: Jiaxin Wu <[email protected]>
Reviewed-by: Ray Ni <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Sami Mujawar <[email protected]>
Signed-off-by: Zhiguang Liu <[email protected]>
Message-Id: <[email protected]>


  Commit: 2ec8f0c6407f062441b205b900038933865c7b3c
      
https://github.com/tianocore/edk2/commit/2ec8f0c6407f062441b205b900038933865c7b3c
  Author: Zhiguang Liu <[email protected]>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
    M StandaloneMmPkg/Core/Mmi.c

  Log Message:
  -----------
  StandaloneMmPkg: Disallow unregister MMI handler in other MMI handler

In last patch, we add code support to unregister MMI handler inside
itself. However, the code doesn't support unregister MMI handler
insider other MMI handler. While this is not a must-have usage.
So add check to disallow unregister MMI handler in other MMI handler.

Cc: Liming Gao <[email protected]>
Cc: Jiaxin Wu <[email protected]>
Cc: Ray Ni <[email protected]>
Cc: Laszlo Ersek <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Sami Mujawar <[email protected]>
Cc: Ray Ni <[email protected]>
Signed-off-by: Zhiguang Liu <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Ray Ni <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>


  Commit: 371940932d2931493cdf25076ce84c117679eb88
      
https://github.com/tianocore/edk2/commit/371940932d2931493cdf25076ce84c117679eb88
  Author: Li, Zhihao <[email protected]>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
    M MdeModulePkg/Core/Pei/Dispatcher/Dispatcher.c

  Log Message:
  -----------
  MdeModulePkg/Core/Pei: Improve the copy performance

REF: https://bugzilla.tianocore.org/show_bug.cgi?id=4697

EvacuateTempRam function will copy the temporary memory context to the rebased
pages and the raw pages. Migrations of rebased PEIMs is from cache to memory,
while raw PEIMs is from memory to memory. So the migrations of raw PEIMs
is slower than rebased PEIMs. Experimental data indicates that changing the 
source
address of raw PEIMs migration will improve performance by 35%.

Cc: Liming Gao <[email protected]>
Signed-off-by: Zhihao Li <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Liming Gao <[email protected]>
Reviewed-by: Michael Kubacki <[email protected]>


  Commit: fded08e74400fd0b76ad4733111e946f3ecea244
      
https://github.com/tianocore/edk2/commit/fded08e74400fd0b76ad4733111e946f3ecea244
  Author: Gerd Hoffmann <[email protected]>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
    M OvmfPkg/ResetVector/Ia32/PageTables64.asm

  Log Message:
  -----------
  OvmfPkg/ResetVector: improve page table flag names

Add comments, rename some of the PAGE_* flags and combined attributes.
Specifically use "LARGEPAGE" instead of "2M" because that bit is used
for both 2M and 1G large pages.

Signed-off-by: Gerd Hoffmann <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Message-Id: <[email protected]>
Cc: Jiewen Yao <[email protected]>
Cc: Oliver Steffen <[email protected]>
Cc: Michael Roth <[email protected]>
Cc: Erdem Aktas <[email protected]>
Cc: Min Xu <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Tom Lendacky <[email protected]>
[[email protected]: turn the "Cc:" message headers from Gerd's on-list
 posting into "Cc:" tags in the commit message, in order to pacify
 "PatchCheck.py"]


  Commit: 52e44713d23de600ac7eb12bdfa0600abd2294eb
      
https://github.com/tianocore/edk2/commit/52e44713d23de600ac7eb12bdfa0600abd2294eb
  Author: Gerd Hoffmann <[email protected]>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
    M OvmfPkg/ResetVector/Ia32/PageTables64.asm

  Log Message:
  -----------
  OvmfPkg/ResetVector: add ClearOvmfPageTables macro

Move code to clear the page tables to a nasm macro.
No functional change.

Signed-off-by: Gerd Hoffmann <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Message-Id: <[email protected]>
Cc: Jiewen Yao <[email protected]>
Cc: Oliver Steffen <[email protected]>
Cc: Michael Roth <[email protected]>
Cc: Erdem Aktas <[email protected]>
Cc: Min Xu <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Tom Lendacky <[email protected]>
[[email protected]: turn the "Cc:" message headers from Gerd's on-list
 posting into "Cc:" tags in the commit message, in order to pacify
 "PatchCheck.py"]


  Commit: 4329b5b0cd58891e1385c90a5e509c91ba0eb891
      
https://github.com/tianocore/edk2/commit/4329b5b0cd58891e1385c90a5e509c91ba0eb891
  Author: Gerd Hoffmann <[email protected]>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
    M OvmfPkg/ResetVector/Ia32/PageTables64.asm

  Log Message:
  -----------
  OvmfPkg/ResetVector: add CreatePageTables4Level macro

Move code to create 4-level page tables to a nasm macro.
No functional change.

Signed-off-by: Gerd Hoffmann <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Message-Id: <[email protected]>
Cc: Jiewen Yao <[email protected]>
Cc: Oliver Steffen <[email protected]>
Cc: Michael Roth <[email protected]>
Cc: Erdem Aktas <[email protected]>
Cc: Min Xu <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Tom Lendacky <[email protected]>
[[email protected]: turn the "Cc:" message headers from Gerd's on-list
 posting into "Cc:" tags in the commit message, in order to pacify
 "PatchCheck.py"]


  Commit: b7a97bfac52819d37310106e467623b0ed4a8f87
      
https://github.com/tianocore/edk2/commit/b7a97bfac52819d37310106e467623b0ed4a8f87
  Author: Gerd Hoffmann <[email protected]>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
    M OvmfPkg/ResetVector/Ia32/IntelTdx.asm
    M OvmfPkg/ResetVector/Ia32/PageTables64.asm

  Log Message:
  -----------
  OvmfPkg/ResetVector: split TDX BSP workflow

Create a separate control flow for TDX BSP.

TdxPostBuildPageTables will now only be called when running in TDX
mode, so the TDX check in that function is not needed any more.

No functional change.

Signed-off-by: Gerd Hoffmann <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Message-Id: <[email protected]>
Cc: Jiewen Yao <[email protected]>
Cc: Oliver Steffen <[email protected]>
Cc: Michael Roth <[email protected]>
Cc: Erdem Aktas <[email protected]>
Cc: Min Xu <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Tom Lendacky <[email protected]>
[[email protected]: turn the "Cc:" message headers from Gerd's on-list
 posting into "Cc:" tags in the commit message, in order to pacify
 "PatchCheck.py"]


  Commit: e3bd782373d87872c359939462a66d9bc2f2a252
      
https://github.com/tianocore/edk2/commit/e3bd782373d87872c359939462a66d9bc2f2a252
  Author: Gerd Hoffmann <[email protected]>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
    M OvmfPkg/ResetVector/Ia32/AmdSev.asm
    M OvmfPkg/ResetVector/Ia32/PageTables64.asm

  Log Message:
  -----------
  OvmfPkg/ResetVector: split SEV and non-CoCo workflows

Use separate control flows for SEV and non-CoCo cases.

SevClearPageEncMaskForGhcbPage and GetSevCBitMaskAbove31 will now only
be called when running in SEV mode, so the SEV check in these functions
is not needed any more.

No functional change.

Signed-off-by: Gerd Hoffmann <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Message-Id: <[email protected]>
Cc: Jiewen Yao <[email protected]>
Cc: Oliver Steffen <[email protected]>
Cc: Michael Roth <[email protected]>
Cc: Erdem Aktas <[email protected]>
Cc: Min Xu <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Tom Lendacky <[email protected]>
[[email protected]: turn the "Cc:" message headers from Gerd's on-list
 posting into "Cc:" tags in the commit message, in order to pacify
 "PatchCheck.py"]


  Commit: 49b7faba1d6e29bd6238d6b85de22b2c3fca4d12
      
https://github.com/tianocore/edk2/commit/49b7faba1d6e29bd6238d6b85de22b2c3fca4d12
  Author: Gerd Hoffmann <[email protected]>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
    M OvmfPkg/ResetVector/Ia32/PageTables64.asm
    M OvmfPkg/ResetVector/ResetVector.inf
    M OvmfPkg/ResetVector/ResetVector.nasmb

  Log Message:
  -----------
  OvmfPkg/ResetVector: add 5-level paging support

Add macros to check for 5-level paging and gigabyte page support.
Enable 5-level paging for the non-confidential-computing case.

Signed-off-by: Gerd Hoffmann <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Cc: Jiewen Yao <[email protected]>
Cc: Oliver Steffen <[email protected]>
Cc: Michael Roth <[email protected]>
Cc: Erdem Aktas <[email protected]>
Cc: Min Xu <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Tom Lendacky <[email protected]>
[[email protected]: turn the "Cc:" message headers from Gerd's on-list
 posting into "Cc:" tags in the commit message, in order to pacify
 "PatchCheck.py"]


  Commit: 318b0d714a7ef184ceb445d16f63c9687e89b10e
      
https://github.com/tianocore/edk2/commit/318b0d714a7ef184ceb445d16f63c9687e89b10e
  Author: Gerd Hoffmann <[email protected]>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
    M OvmfPkg/ResetVector/Ia32/PageTables64.asm

  Log Message:
  -----------
  OvmfPkg/ResetVector: print post codes for 4/5 level paging

Signed-off-by: Gerd Hoffmann <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
Message-Id: <[email protected]>
Cc: Jiewen Yao <[email protected]>
Cc: Oliver Steffen <[email protected]>
Cc: Michael Roth <[email protected]>
Cc: Erdem Aktas <[email protected]>
Cc: Min Xu <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Tom Lendacky <[email protected]>
[[email protected]: turn the "Cc:" message headers from Gerd's on-list
 posting into "Cc:" tags in the commit message, in order to pacify
 "PatchCheck.py"]


  Commit: 275d0a39c42ad73a6e4929822f56f5d8c16ede96
      
https://github.com/tianocore/edk2/commit/275d0a39c42ad73a6e4929822f56f5d8c16ede96
  Author: Gerd Hoffmann <[email protected]>
  Date:   2024-03-01 (Fri, 01 Mar 2024)

  Changed paths:
    M OvmfPkg/ResetVector/Ia32/IntelTdx.asm
    M OvmfPkg/ResetVector/Ia32/PageTables64.asm

  Log Message:
  -----------
  OvmfPkg/ResetVector: wire up 5-level paging for TDX

BSP workflow is quite simliar to the non-coco case.

TDX_WORK_AREA_PGTBL_READY is used to record the paging mode:
  1 == 4-level paging
  2 == 5-level paging

APs will look at TDX_WORK_AREA_PGTBL_READY to figure whenever
they should enable 5-level paging or not.

Signed-off-by: Gerd Hoffmann <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Laszlo Ersek <[email protected]>
[[email protected]: move "CheckForSev:" label into "%if PG_5_LEVEL" scope,
 as discussed with Gerd]
Cc: Jiewen Yao <[email protected]>
Cc: Oliver Steffen <[email protected]>
Cc: Michael Roth <[email protected]>
Cc: Erdem Aktas <[email protected]>
Cc: Min Xu <[email protected]>
Cc: Ard Biesheuvel <[email protected]>
Cc: Tom Lendacky <[email protected]>
[[email protected]: turn the "Cc:" message headers from Gerd's on-list
 posting into "Cc:" tags in the commit message, in order to pacify
 "PatchCheck.py"]


Compare: https://github.com/tianocore/edk2/compare/dc7cfa9bab74...275d0a39c42a

To unsubscribe from these emails, change your notification settings at 
https://github.com/tianocore/edk2/settings/notifications


_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to