Question about Smm code / StandaloneMmPkg


Tiger Liu(BJ-RD)
 

Dear All:
I have a few questions about Smm code and StandaloneMmPkg.

Take X86 Arch cpu as example:
1. Smm infrastructure code is implemented in MdeModulePkg\Core\PiSmmCore
But it's a traditional smm mode, used launched in UEFI DXE Phase.

A_Tour_Beyond_BIOS_Launching_Standalone_SMM_Drivers_in_PEI_using_the_EFI_Developer_Kit_II.pdf
----> This doc introduced a standalone smm mode.

PI Spec introduces a MM concept, it's arch independent.

So, I have below questions:
1. Will X86 SMM code implementation be migrated to MM concept code base?
2. StandaloneMmPkg is a MM reference implementation, is it arch independent?
3. The above doc mentioned launching SMM drivers in PEI, is it also implemented in StandaloneMmPkg?

Thanks


保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.


Laszlo Ersek
 

Adding Kun Qin; a comment below:

On 03/04/21 09:34, Tiger Liu(BJ-RD) wrote:
Dear All:
I have a few questions about Smm code and StandaloneMmPkg.

Take X86 Arch cpu as example:
1. Smm infrastructure code is implemented in MdeModulePkg\Core\PiSmmCore
But it's a traditional smm mode, used launched in UEFI DXE Phase.

A_Tour_Beyond_BIOS_Launching_Standalone_SMM_Drivers_in_PEI_using_the_EFI_Developer_Kit_II.pdf
----> This doc introduced a standalone smm mode.

PI Spec introduces a MM concept, it's arch independent.

So, I have below questions:
1. Will X86 SMM code implementation be migrated to MM concept code base?
2. StandaloneMmPkg is a MM reference implementation, is it arch independent?
3. The above doc mentioned launching SMM drivers in PEI, is it also implemented in StandaloneMmPkg?
Please see (also) the following thread:

[edk2-rfc] [RFC]
Support Both MM Traditional and Standalone Drivers with One MM Core

https://edk2.groups.io/g/rfc/message/430

Thanks
Laszlo



Thanks


保密声明:
本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
CONFIDENTIAL NOTE:
This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.





Kun Qin <kun.q@...>
 

Hi Tiger,

 

Our team has been sending patches to the community to cover Standalone MM driver to support x86 arch recently by believing that Standalone MM is the direction we are moving to in the long term.

 

From our experience so far, the Standalone MM core infrastructure is arch independent and capable of operations such as dispatching MM drivers and managing memory as is. What really is missing would be the StandaloneMmCpu and an IPL that can install MM foundation for x86 arch. But I am unaware of any public implementation for these 2 components at this moment. As I joined this Standalone MM journey relatively recently, maybe other community members will have more information in that regards.

 

Generally from our perspective, we are taking Standalone Mm model as an opportunity to provide better isolation between MM and non-MM environment, since this model is providing cleaner boundary inside MM without convoluted access to non-MM (mostly DXE) environment. If x86 SMM core code will ever be added to Standalone MM implemation, I would hope we do not lose advantage on that specific point.

 

Thanks,

Kun

 

From: Laszlo Ersek
Sent: Thursday, March 4, 2021 12:55
To: devel@edk2.groups.io; tigerliu@...; Kinney, Michael D; Kun Qin
Subject: Re: [edk2-devel] Question about Smm code / StandaloneMmPkg

 

Adding Kun Qin; a comment below:

On 03/04/21 09:34, Tiger Liu(BJ-RD) wrote:
> Dear All:
> I have a few questions about Smm code and StandaloneMmPkg.
>
> Take X86 Arch cpu as example:
> 1. Smm infrastructure code is implemented in MdeModulePkg\Core\PiSmmCore
>    But it's a traditional smm mode, used launched in UEFI DXE Phase.
>
> A_Tour_Beyond_BIOS_Launching_Standalone_SMM_Drivers_in_PEI_using_the_EFI_Developer_Kit_II.pdf
> ----> This doc introduced a standalone smm mode.
>
> PI Spec introduces a MM concept, it's arch independent.
>
> So, I have below questions:
> 1. Will X86 SMM code implementation be migrated to MM concept code base?
> 2. StandaloneMmPkg is a MM reference implementation, is it arch independent?
> 3. The above doc mentioned launching SMM drivers in PEI,  is it also implemented in StandaloneMmPkg?

Please see (also) the following thread:

  [edk2-rfc] [RFC]
  Support Both MM Traditional and Standalone Drivers with One MM Core

  https://edk2.groups.io/g/rfc/message/430

Thanks
Laszlo


>
> Thanks
>
>
> 保密声明:
> 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。
> CONFIDENTIAL NOTE:
> This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited.
>
>
>
>
>