Branch: refs/heads/master
  Home:   https://github.com/tianocore/edk2
  Commit: c72d6384347bc57109d75fd56f2a5cdb8a40d132
      
https://github.com/tianocore/edk2/commit/c72d6384347bc57109d75fd56f2a5cdb8a40d132
  Author: Kun Qin <[email protected]>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M StandaloneMmPkg/Drivers/StandaloneMmIplPei/StandaloneMmIplPei.c

  Log Message:
  -----------
  StandaloneMmPkg: StandaloneMmIplPei: Prevent Freeing Zero Pages

There could be scenarios where the HOB producer does not create any HOBs.
In such cases, the buffer intended to be freed will have zero pages.

This update addresses the issue that could cause assertions during
runtime by ensuring that buffers with zero pages are not freed.

Signed-off-by: Kun Qin <[email protected]>


  Commit: 73b0b5edaef19beb08b04869bc2e0f6328c9e604
      
https://github.com/tianocore/edk2/commit/73b0b5edaef19beb08b04869bc2e0f6328c9e604
  Author: Kun Qin <[email protected]>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M StandaloneMmPkg/Drivers/StandaloneMmIplPei/StandaloneMmIplPei.c
    M StandaloneMmPkg/Drivers/StandaloneMmIplPei/StandaloneMmIplPei.h
    M StandaloneMmPkg/Drivers/StandaloneMmIplPei/StandaloneMmIplPei.inf

  Log Message:
  -----------
  StandaloneMmPkg: StandaloneMmIplPei: Use MM access to open the regions

Current MM IPL in PEI phase does not open the MMRAM regions through MM
access PPI. This is causing some platforms like OVMF reading all `0xFF`s
when trying to relocate the Standalone MM core.

This change opens all the MMRAM regions provided by MM access PPI and
closes + locks the regions after initial MM foundation setup, when MM
Access PPI is available.

Platforms that require MM access PPI can inject depex through libraries.

Signed-off-by: Kun Qin <[email protected]>


  Commit: aba8a76a64b21dbdd8382ba6361b35969af6405e
      
https://github.com/tianocore/edk2/commit/aba8a76a64b21dbdd8382ba6361b35969af6405e
  Author: Kun Qin <[email protected]>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M OvmfPkg/Library/MemDebugLogLib/MemDebugLogLibNull.inf

  Log Message:
  -----------
  OvmfPkg: MemDebugLogLibNull: Support Standalone MM core and drivers

This change extends the supported types to Standalone MM and Standalone
MM Core module types to support potential MM usage.

Signed-off-by: Kun Qin <[email protected]>


  Commit: 423b9872534807862d5a0b7268c442ed509b0500
      
https://github.com/tianocore/edk2/commit/423b9872534807862d5a0b7268c442ed509b0500
  Author: Kun Qin <[email protected]>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M OvmfPkg/Library/AcpiTimerLib/DxeAcpiTimerLib.inf

  Log Message:
  -----------
  OvmfPkg: DxeAcpiTimerLib: Support Standalone MM core and drivers

This change extends the library to support MM_CORE_STANDALONE and
MM_STANDALONE for usage in MM standalone environment.

Signed-off-by: Kun Qin <[email protected]>


  Commit: a60b026a1022cfc3bf4fa23b2c54065c734433ff
      
https://github.com/tianocore/edk2/commit/a60b026a1022cfc3bf4fa23b2c54065c734433ff
  Author: Kun Qin <[email protected]>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M OvmfPkg/Library/PlatformDebugLibIoPort/PlatformDebugLibIoPort.inf

  Log Message:
  -----------
  OvmfPkg: PlatformDebugLibIoPort: Support Standalone MM core and drivers

This change extends the library to support MM_CORE_STANDALONE and
MM_STANDALONE for usage in MM standalone environment.

Signed-off-by: Kun Qin <[email protected]>


  Commit: d03c535745ff73bff2154d11bf5b39b1e7e6cbdc
      
https://github.com/tianocore/edk2/commit/d03c535745ff73bff2154d11bf5b39b1e7e6cbdc
  Author: Kun Qin <[email protected]>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M OvmfPkg/Library/PlatformSecureLib/PlatformSecureLib.inf

  Log Message:
  -----------
  OvmfPkg: PlatformSecureLib: Support Standalone MM core and drivers

This change extends the library to support MM_CORE_STANDALONE and
MM_STANDALONE for usage in MM standalone environment.

Signed-off-by: Kun Qin <[email protected]>


  Commit: ad46860061f590c9a5f1a2dc6f80030faa444591
      
https://github.com/tianocore/edk2/commit/ad46860061f590c9a5f1a2dc6f80030faa444591
  Author: Kun Qin <[email protected]>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.c
    M OvmfPkg/Library/SmmCpuFeaturesLib/SmmCpuFeaturesLib.inf
    A OvmfPkg/Library/SmmCpuFeaturesLib/TraditionalMmCpuFeaturesLib.c

  Log Message:
  -----------
  OvmfPkg: SmmCpuFeaturesLib: Abstract out SMM specific implementations

This update refactors the existing SmmCpuFeaturesLib to eliminate direct
calls to SMM-specific functions.

In particular, the constructor has been relocated to traditional MM-
specific C files, utilizing a common entry point.

Furthermore, several implementation-specific functions have been
modularized into its respective C files.

These changes lay the groundwork for supporting a Standalone MM-based
solution in the future.

Signed-off-by: Kun Qin <[email protected]>


  Commit: 84f140bf86ec6b944a7a3955def554142af5faeb
      
https://github.com/tianocore/edk2/commit/84f140bf86ec6b944a7a3955def554142af5faeb
  Author: Kun Qin <[email protected]>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    A OvmfPkg/Library/SmmCpuFeaturesLib/StandaloneMmCpuFeaturesLib.c
    A OvmfPkg/Library/SmmCpuFeaturesLib/StandaloneMmCpuFeaturesLib.inf
    M OvmfPkg/OvmfPkg.ci.yaml

  Log Message:
  -----------
  OvmfPkg: StandaloneMmCpuFeaturesLib: Introduce SmmCpuFeaturesLib for Ovmf

This change adds the implementation of SmmCpuFeaturesLib for Ovmf to
operate with Standalone MM supported platforms.

Signed-off-by: Kun Qin <[email protected]>


  Commit: 8ac270e812e0dfd03c6e55663cab19f76e941dd0
      
https://github.com/tianocore/edk2/commit/8ac270e812e0dfd03c6e55663cab19f76e941dd0
  Author: Kun Qin <[email protected]>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    A OvmfPkg/SmmControl2Dxe/MmControlPei.c
    A OvmfPkg/SmmControl2Dxe/MmControlPei.inf

  Log Message:
  -----------
  OvmfPkg: MmControlPei: Introduce MM control PPI to OVMF

This change adds a PEIM that produces gEfiPeiMmControlPpiGuid to be used
in PEI phase, i.e. boot strap MM foundation.

This flow is largely in assemblence of MM control DXE driver and used the
`SmiFeatures.*` files from the DXE drivers as the common resources.

Signed-off-by: Kun Qin <[email protected]>


  Commit: cf4534c9daf2ead4ce530d374f0a06a95bd98693
      
https://github.com/tianocore/edk2/commit/cf4534c9daf2ead4ce530d374f0a06a95bd98693
  Author: Kun Qin <[email protected]>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M OvmfPkg/OvmfPkg.dec
    M OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.c
    M OvmfPkg/SmmControl2Dxe/SmmControl2Dxe.inf

  Log Message:
  -----------
  OvmfPkg: SmmControl2Dxe: Avoid double initialization

This change adds a build time PCD to prevent the SmmControl2Dxe driver
from re-initialization the MM related registers.

This register is to be used when MmControlPei is already executed in PEI
phase and completed setting up the MM control registers.

Signed-off-by: Kun Qin <[email protected]>


  Commit: aedcb46e6fd260ab39cf0fc63a85c7f8da8aa476
      
https://github.com/tianocore/edk2/commit/aedcb46e6fd260ab39cf0fc63a85c7f8da8aa476
  Author: Kun Qin <[email protected]>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.c
    M OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockService.h
    M OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceDxe.c
    M OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceSmm.c

  Log Message:
  -----------
  OvmfPkg: QemuFlashFvbServicesRuntimeDxe: Abstract out SMM/DXE functions

This update refactors QemuFlashFvbServicesRuntimeDxe to abstract out
direct calls to SMM and DXE specific functions.

Specifically, dynamic PCD usage and gBS references have been moved to SMM
specific files.

The constructor functionality has been relocated to a common
implementation and is invoked from their respective entry points.

These changes lay the groundwork for supporting a Standalone MM-based
solution in the future.

Signed-off-by: Kun Qin <[email protected]>


  Commit: 4ea31ba0200ecf734bbb5b6ae75ebce5612fb329
      
https://github.com/tianocore/edk2/commit/4ea31ba0200ecf734bbb5b6ae75ebce5612fb329
  Author: Kun Qin <[email protected]>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    A OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FvbServicesStandaloneMm.inf
    A OvmfPkg/QemuFlashFvbServicesRuntimeDxe/FwBlockServiceStandaloneMm.c

  Log Message:
  -----------
  OvmfPkg: QemuFlashFvbServices: Introduce Standalone MM instance

This update introduces the implementation of QemuFlashFvbServices to
support operation with Standalone MM backed platforms.

Signed-off-by: Kun Qin <[email protected]>


  Commit: 187761e05d82501aa5d63b3900501ea065c9d182
      
https://github.com/tianocore/edk2/commit/187761e05d82501aa5d63b3900501ea065c9d182
  Author: Kun Qin <[email protected]>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    A OvmfPkg/Library/MemEncryptSevLibNull/MemEncryptSevLibNull.c
    A OvmfPkg/Library/MemEncryptSevLibNull/MemEncryptSevLibNull.inf

  Log Message:
  -----------
  OvmfPkg: MemEncryptSevLib: Add Null instance

This change introduces a Null instance of MemEncryptSevLib to enable
platforms that do not have confidential compute support.

Signed-off-by: Kun Qin <[email protected]>


  Commit: 00ee4b57f8b3071f85984f8a9c715a318bf67f04
      
https://github.com/tianocore/edk2/commit/00ee4b57f8b3071f85984f8a9c715a318bf67f04
  Author: Kun Qin <[email protected]>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    A 
OvmfPkg/Library/MmPlatformHobProducerLibOvmf/MmPlatformHobProducerLibOvmf.c
    A 
OvmfPkg/Library/MmPlatformHobProducerLibOvmf/MmPlatformHobProducerLibOvmf.inf

  Log Message:
  -----------
  OvmfPkg: MmPlatformHobProducerLibOvmf: Ovmf specific HOB creators for Stmm

This change introduces a platform specific HOB producor library to meet
the expectation of Standalone MM core.

Signed-off-by: Kun Qin <[email protected]>


  Commit: e8fe2e83f10822e2b3fb4e41e444e792cd7c2420
      
https://github.com/tianocore/edk2/commit/e8fe2e83f10822e2b3fb4e41e444e792cd7c2420
  Author: Kun Qin <[email protected]>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M OvmfPkg/OvmfPkgX64.dsc
    M OvmfPkg/OvmfPkgX64.fdf
    M OvmfPkg/PlatformCI/PlatformBuildLib.py

  Log Message:
  -----------
  OvmfPkg: OvmfPkgX64: Platform changes for Standalone MM support

This change adds a build flag in the platform DSC file to support
standalone MM build on OVMF platform.

The new standalone MM platform will not support S3 boot and thus no SMM
lock box related components are included.

Signed-off-by: Kun Qin <[email protected]>


  Commit: b25c1aa090bc0292023e69f53ada5b3c0f2e426a
      
https://github.com/tianocore/edk2/commit/b25c1aa090bc0292023e69f53ada5b3c0f2e426a
  Author: Kun Qin <[email protected]>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M OvmfPkg/PlatformCI/.azurepipelines/Ubuntu-GCC.yml
    M OvmfPkg/PlatformCI/.azurepipelines/Windows-VS.yml

  Log Message:
  -----------
  OvmfPkg: PlatformCI: Ovmf x64 platform with Standalone MM

This change expands the CI pipeline build to a new platform type with
Standalone MM support to ensure the incoming change works with Standalone
MM environment on x64 platforms.

Signed-off-by: Kun Qin <[email protected]>


  Commit: e4e29690f11f492ef929916dd1fa862f5ac25e2d
      
https://github.com/tianocore/edk2/commit/e4e29690f11f492ef929916dd1fa862f5ac25e2d
  Author: Kun Qin <[email protected]>
  Date:   2025-06-19 (Thu, 19 Jun 2025)

  Changed paths:
    M OvmfPkg/README

  Log Message:
  -----------
  OvmfPkg: README: Add documentation for Standalone MM on OVMF

This update introduces a new section in the README file, detailing the
design considerations of the recently onboarded Standalone MM platform in
OVMF.

The section is intended for future reference and should be revised
accordingly if updates to the Standalone MM framework render these
limitations obsolete.

Signed-off-by: Kun Qin <[email protected]>


Compare: https://github.com/tianocore/edk2/compare/c2554567658c...e4e29690f11f

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