Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: 00bbb1e584ec05547159f405cca383e8ba5e4ddb
      
https://github.com/tianocore/edk2/commit/00bbb1e584ec05547159f405cca383e8ba5e4ddb
  Author: Min M Xu <min.m...@intel.com>
  Date:   2022-11-01 (Tue, 01 Nov 2022)

  Changed paths:
    A MdeModulePkg/Include/Pi/PrePiHob.h

  Log Message:
  -----------
  MdeModulePkg: Add PrePiHob.h

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

BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED is defined for unaccepted memory.
But this defitinion has not been officially in the PI spec. Base
on the code-first we define BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED at
MdeModulePkg/Include/Pi/PrePiHob.h.

Cc: Jian J Wang <jian.j.w...@intel.com>
Cc: Liming Gao <gaolim...@byosoft.com.cn>
Cc: Ray Ni <ray...@intel.com>
Cc: Erdem Aktas <erdemak...@google.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: James Bottomley <j...@linux.ibm.com>
Cc: Jiewen Yao <jiewen....@intel.com>
Cc: Tom Lendacky <thomas.lenda...@amd.com>
Acked-by: Gerd Hoffmann <kra...@redhat.com>
Reviewed-by: Liming Gao <gaolim...@byosoft.com.cn>
Signed-off-by: Min Xu <min.m...@intel.com>


  Commit: 32c5a470ad752d55454eddca01eda90a9e48e745
      
https://github.com/tianocore/edk2/commit/32c5a470ad752d55454eddca01eda90a9e48e745
  Author: Min M Xu <min.m...@intel.com>
  Date:   2022-11-01 (Tue, 01 Nov 2022)

  Changed paths:
    M MdePkg/Include/Pi/PiHob.h

  Log Message:
  -----------
  MdePkg: Increase EFI_RESOURCE_MAX_MEMORY_TYPE

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

BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED is defined for unaccepted memory.
But this defitinion has not been officially in the PI spec. Base
on the code-first we define EFI_RESOURCE_MEMORY_UNACCEPTED at
MdeModulePkg/Include/Pi/PrePiHob.h and update EFI_RESOURCE_MAX_MEMORY_TYPE
to 8. After BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED is officially published
in PI spec, we will re-visit here.

Cc: Michael D Kinney <michael.d.kin...@intel.com>
Cc: Liming Gao <gaolim...@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang....@intel.com>
Cc: Erdem Aktas <erdemak...@google.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: James Bottomley <j...@linux.ibm.com>
Cc: Jiewen Yao <jiewen....@intel.com>
Cc: Tom Lendacky <thomas.lenda...@amd.com>
Reviewed-by: Jiewen Yao <jiewen....@intel.com>
Reviewed-by: Liming Gao <gaolim...@byosoft.com.cn>
Signed-off-by: Min Xu <min.m...@intel.com>


  Commit: 9b648112a51fdbe9c173e2de7315b24a5f3844ef
      
https://github.com/tianocore/edk2/commit/9b648112a51fdbe9c173e2de7315b24a5f3844ef
  Author: Min M Xu <min.m...@intel.com>
  Date:   2022-11-01 (Tue, 01 Nov 2022)

  Changed paths:
    M OvmfPkg/Library/PeilessStartupLib/Hob.c
    M OvmfPkg/Library/PlatformInitLib/IntelTdx.c

  Log Message:
  -----------
  OvmfPkg: Use BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED defined in MdeModulePkg

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

BZ3937_EFI_RESOURCE_MEMORY_UNACCEPTED is defined in MdeModulePkg. The
files which use the definition are updated as well.

Cc: Erdem Aktas <erdemak...@google.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: James Bottomley <j...@linux.ibm.com>
Cc: Jiewen Yao <jiewen....@intel.com>
Cc: Tom Lendacky <thomas.lenda...@amd.com>
Acked-by: Gerd Hoffmann <kra...@redhat.com>
Signed-off-by: Min Xu <min.m...@intel.com>
Reviewed-by: Jiewen Yao <jiewen....@intel.com>


  Commit: 502c01c5028038e4e6b4512e9c66be0ec4d11492
      
https://github.com/tianocore/edk2/commit/502c01c5028038e4e6b4512e9c66be0ec4d11492
  Author: Min M Xu <min.m...@intel.com>
  Date:   2022-11-01 (Tue, 01 Nov 2022)

  Changed paths:
    A MdeModulePkg/Include/Pi/PrePiDxeCis.h
    M MdePkg/Include/Pi/PiDxeCis.h
    M MdePkg/Include/Uefi/UefiMultiPhase.h

  Log Message:
  -----------
  MdePkg: Add UEFI Unaccepted memory definition

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

Plase refer to:
  UEFI Spec v2.9 Table 7-5 Memory Type Usage before ExitBootServices()

Cc: Michael D Kinney <michael.d.kin...@intel.com>
Cc: Liming Gao <gaolim...@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang....@intel.com>
Cc: Erdem Aktas <erdemak...@google.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: James Bottomley <j...@linux.ibm.com>
Cc: Jiewen Yao <jiewen....@intel.com>
Cc: Tom Lendacky <thomas.lenda...@amd.com>
Reviewed-by: Jiewen Yao <jiewen....@intel.com>
Acked-by: Gerd Hoffmann <kra...@redhat.com>
Reviewed-by: Liming Gao <gaolim...@byosoft.com.cn>
Signed-off-by: Min Xu <min.m...@intel.com>


  Commit: 43e306806e3c1ed3ad7e9913492732e893cafa0f
      
https://github.com/tianocore/edk2/commit/43e306806e3c1ed3ad7e9913492732e893cafa0f
  Author: Min M Xu <min.m...@intel.com>
  Date:   2022-11-01 (Tue, 01 Nov 2022)

  Changed paths:
    M MdeModulePkg/Core/Dxe/Gcd/Gcd.c
    M MdeModulePkg/Core/Dxe/Mem/Page.c

  Log Message:
  -----------
  MdeModulePkg: Update Dxe to handle unaccepted memory type

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

Unaccepted memory is a kind of new memory type,
CoreInitializeGcdServices() and CoreGetMemoryMap() are updated to handle
the unaccepted memory type.

Ref: microsoft/mu_basecore@97e9c31

Cc: Jian J Wang <jian.j.w...@intel.com>
Cc: Liming Gao <gaolim...@byosoft.com.cn>
Cc: Ray Ni <ray...@intel.com>
Cc: Erdem Aktas <erdemak...@google.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: James Bottomley <j...@linux.ibm.com>
Cc: Jiewen Yao <jiewen....@intel.com>
Cc: Tom Lendacky <thomas.lenda...@amd.com>
Acked-by: Gerd Hoffmann <kra...@redhat.com>
Reviewed-by: Liming Gao <gaolim...@byosoft.com.cn>
Signed-off-by: Min Xu <min.m...@intel.com>


  Commit: 6ca9f410d1ff7c7cc3413fe01898e77da411016b
      
https://github.com/tianocore/edk2/commit/6ca9f410d1ff7c7cc3413fe01898e77da411016b
  Author: Min M Xu <min.m...@intel.com>
  Date:   2022-11-01 (Tue, 01 Nov 2022)

  Changed paths:
    M ShellPkg/Library/UefiShellDebug1CommandsLib/MemMap.c
    M ShellPkg/Library/UefiShellDebug1CommandsLib/UefiShellDebug1CommandsLib.uni

  Log Message:
  -----------
  ShellPkg: Update shell command memmap to show unaccepted memory

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

ShellCommandRunMemMap() is updated to handle the case of unaccepted
memory type.

Cc: Ray Ni <ray...@intel.com>
Cc: Zhichao Gao <zhichao....@intel.com>
Cc: Erdem Aktas <erdemak...@google.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: James Bottomley <j...@linux.ibm.com>
Cc: Jiewen Yao <jiewen....@intel.com>
Cc: Tom Lendacky <thomas.lenda...@amd.com>
Acked-by: Gerd Hoffmann <kra...@redhat.com>
Acked-by: Zhichao Gao <zhichao....@intel.com>
Signed-off-by: Min Xu <min.m...@intel.com>


  Commit: d1e41c620f287da7449849292d0e239c51ea0b19
      
https://github.com/tianocore/edk2/commit/d1e41c620f287da7449849292d0e239c51ea0b19
  Author: Min M Xu <min.m...@intel.com>
  Date:   2022-11-01 (Tue, 01 Nov 2022)

  Changed paths:
    M OvmfPkg/Library/PlatformInitLib/IntelTdx.c
    M OvmfPkg/Library/PlatformInitLib/MemDetect.c

  Log Message:
  -----------
  OvmfPkg: Introduce lazy accept in PlatformInitLib and PlatformPei

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

There are below major changes in PlatformInitLib/PlatformPei
1. ProcessHobList
  The unaccepted memory is accepted if it is under 4G address.
  Please be noted: in current stage, we only accept the memory under 4G.
  We will re-visit here in the future when on-demand accept memory is
  required.

2. TransferTdxHobList
  Transfer the unaccepted memory hob to EFI_RESOURCE_SYSTEM_MEMORY hob
  if it is accepted.

Cc: Erdem Aktas <erdemak...@google.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: James Bottomley <j...@linux.ibm.com>
Cc: Jiewen Yao <jiewen....@intel.com>
Cc: Tom Lendacky <thomas.lenda...@amd.com>
Acked-by: Gerd Hoffmann <kra...@redhat.com>
Signed-off-by: Min Xu <min.m...@intel.com>
Reviewed-by: Jiewen Yao <jiewen....@intel.com>


  Commit: 2af33db3651aef3f1c04fd5b9b946c8983758742
      
https://github.com/tianocore/edk2/commit/2af33db3651aef3f1c04fd5b9b946c8983758742
  Author: Jiaqi Gao <jiaqi....@intel.com>
  Date:   2022-11-01 (Tue, 01 Nov 2022)

  Changed paths:
    A MdePkg/Include/Protocol/MemoryAccept.h
    M MdePkg/MdePkg.dec

  Log Message:
  -----------
  MdePkg: The prototype definition of EdkiiMemoryAcceptProtocol

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

EdkiiMemoryAcceptProtocol is defined in MdePkg, the method AcceptMemory()
can be called when memory needs to be accepted.

EdkiiMemoryAcceptProtocol can be installed by architecture-specific
drivers such as TdxDxe. This allows different isolation architectures
to realize their own low-level methods to accept memory.

Cc: Michael D Kinney <michael.d.kin...@intel.com>
Cc: Liming Gao <gaolim...@byosoft.com.cn>
Cc: Zhiguang Liu <zhiguang....@intel.com>
Cc: Erdem Aktas <erdemak...@google.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: James Bottomley <j...@linux.ibm.com>
Cc: Jiewen Yao <jiewen....@intel.com>
Cc: Tom Lendacky <thomas.lenda...@amd.com>
Acked-by: Gerd Hoffmann <kra...@redhat.com>
Reviewed-by: Liming Gao <gaolim...@byosoft.com.cn>
Signed-off-by: Jiaqi Gao <jiaqi....@intel.com>
Signed-off-by: Min Xu <min.m...@intel.com>


  Commit: 7dcc2f387071e808be560f6ad0acbd1a7f0f6001
      
https://github.com/tianocore/edk2/commit/7dcc2f387071e808be560f6ad0acbd1a7f0f6001
  Author: Min M Xu <min.m...@intel.com>
  Date:   2022-11-01 (Tue, 01 Nov 2022)

  Changed paths:
    M OvmfPkg/TdxDxe/TdxDxe.c
    M OvmfPkg/TdxDxe/TdxDxe.inf

  Log Message:
  -----------
  OvmfPkg: Realize EdkiiMemoryAcceptProtocol in TdxDxe

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

Memory usage may exceed the amount accepted at the begining (SEC), TDVF
needs to accept memory dynamically when OUT_OF_RESOURCE occurs.

Another usage is in SetOrClearSharedBit. If a memory region is changed from
shared to private, it must be accepted again.

EdkiiMemoryAcceptProtocol is defined in MdePkg and is implementated /
installed in TdxDxe for Intel TDX memory acceptance.

Cc: Erdem Aktas <erdemak...@google.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: James Bottomley <j...@linux.ibm.com>
Cc: Jiewen Yao <jiewen....@intel.com>
Cc: Tom Lendacky <thomas.lenda...@amd.com>
Acked-by: Gerd Hoffmann <kra...@redhat.com>
Signed-off-by: Min Xu <min.m...@intel.com>
Reviewed-by: Jiewen Yao <jiewen....@intel.com>


  Commit: 720c25ab41400f9a3dfd0742da5a6d237991df5b
      
https://github.com/tianocore/edk2/commit/720c25ab41400f9a3dfd0742da5a6d237991df5b
  Author: Min M Xu <min.m...@intel.com>
  Date:   2022-11-01 (Tue, 01 Nov 2022)

  Changed paths:
    M OvmfPkg/Library/BaseMemEncryptTdxLib/BaseMemEncryptTdxLib.inf
    M OvmfPkg/Library/BaseMemEncryptTdxLib/MemoryEncryption.c

  Log Message:
  -----------
  OvmfPkg: Call gEdkiiMemoryAcceptProtocolGuid to accept pages

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

After EdkiiMemoryAcceptProtocol is implemented in TdxDxe driver, we can
call it to accept pages in DXE phase.

Cc: Erdem Aktas <erdemak...@google.com>
Cc: James Bottomley <j...@linux.ibm.com>
Cc: Jiewen Yao <jiewen....@intel.com>
Cc: Gerd Hoffmann <kra...@redhat.com>
Cc: Tom Lendacky <thomas.lenda...@amd.com>
Acked-by: Gerd Hoffmann <kra...@redhat.com>
Signed-off-by: Min Xu <min.m...@intel.com>
Reviewed-by: Jiewen Yao <jiewen....@intel.com>


Compare: https://github.com/tianocore/edk2/compare/df7ce74e6c75...720c25ab4140


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

Reply via email to