Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 54051768cdf69e2b46dc4fe1a85455d631aa2634
      
https://github.com/tianocore/edk2/commit/54051768cdf69e2b46dc4fe1a85455d631aa2634
  Author: Gerd Hoffmann <kra...@redhat.com>
  Date:   2023-04-01 (Sat, 01 Apr 2023)

  Changed paths:
    M UefiCpuPkg/PiSmmCpuDxeSmm/PiSmmCpuDxeSmm.c

  Log Message:
  -----------
  UefiCpuPkg/PiSmmCpuDxeSmm: fix format string

BufferPages is UINTN, so we need "%Lu" when printing it to avoid
it being truncated.  Also cast to UINT64 to make sure it works
for 32bit builds too.

Fixes: 4f441d024bee ("UefiCpuPkg/PiSmmCpuDxeSmm: fix error handling")
Reported-by: Laszlo Ersek <ler...@redhat.com>
Signed-off-by: Gerd Hoffmann <kra...@redhat.com>
Reviewed-by: Laszlo Ersek <ler...@redhat.com>
Reviewed-by: Ray Ni <ray...@intel.com>


  Commit: 3323359a811a597b8ee045638c5addd10444402c
      
https://github.com/tianocore/edk2/commit/3323359a811a597b8ee045638c5addd10444402c
  Author: Lendacky, Thomas via groups.io <thomas.lendacky=amd....@groups.io>
  Date:   2023-04-01 (Sat, 01 Apr 2023)

  Changed paths:
    M UefiCpuPkg/Library/MpInitLib/X64/AmdSev.c

  Log Message:
  -----------
  UefiCpuPkg/MpInitLib: Reuse VMSA allocation to avoid unreserved allocation

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

When parking the APs on exiting from UEFI, a new page allocation is made.
This allocation, however, does not end up being marked reserved in the
memory map supplied to the OS. To avoid this, re-use the VMSA by clearing
the VMSA RMP flag, updating the page contents and re-setting the VMSA RMP
flag.

Fixes: 06544455d0d4 ("UefiCpuPkg/MpInitLib: Use SEV-SNP AP Creation ...")
Signed-off-by: Tom Lendacky <thomas.lenda...@amd.com>
Acked-by: Gerd Hoffmann <kra...@redhat.com>
Acked-by: Ray Ni <ray...@intel.com>


  Commit: 67a6f414aa0e2a9cac965fcc6d83b6cbd6e893c0
      
https://github.com/tianocore/edk2/commit/67a6f414aa0e2a9cac965fcc6d83b6cbd6e893c0
  Author: Lendacky, Thomas via groups.io <thomas.lendacky=amd....@groups.io>
  Date:   2023-04-01 (Sat, 01 Apr 2023)

  Changed paths:
    M UefiCpuPkg/Library/MpInitLib/X64/AmdSev.c

  Log Message:
  -----------
  UefiCpuPkg/MpInitLib: Ensure SEV-SNP VMSA allocations are not 2MB aligned

BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=4353

Due to AMD erratum #1467, an SEV-SNP VMSA should not be 2MB aligned. To
work around this issue, allocate two pages instead of one. Because of the
way that page allocation is implemented, always try to use the second
page. If the second page is not 2MB aligned, free the first page and use
the second page. If the second page is 2MB aligned, free the second page
and use the first page. Freeing in this way reduces holes in the memory
map.

Fixes: 06544455d0d4 ("UefiCpuPkg/MpInitLib: Use SEV-SNP AP Creation ...")
Signed-off-by: Tom Lendacky <thomas.lenda...@amd.com>

Acked-by: Gerd Hoffmann <kra...@redhat.com>
Acked-by: Ray Ni <ray...@intel.com>


Compare: https://github.com/tianocore/edk2/compare/71210053fafc...67a6f414aa0e


_______________________________________________
edk2-commits mailing list
edk2-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to