From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from ZXSHCAS1.zhaoxin.com (ZXSHCAS1.zhaoxin.com [203.148.12.81]) by mx.groups.io with SMTP id smtpd.web12.32438.1615183012971870072 for ; Sun, 07 Mar 2021 21:56:53 -0800 Authentication-Results: mx.groups.io; dkim=missing; spf=pass (domain: zhaoxin.com, ip: 203.148.12.81, mailfrom: tigerliu@zhaoxin.com) Received: from zxbjmbx1.zhaoxin.com (10.29.252.163) by ZXSHCAS1.zhaoxin.com (10.28.252.161) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 8 Mar 2021 13:56:47 +0800 Received: from zxbjmbx2.zhaoxin.com (10.29.252.164) by zxbjmbx1.zhaoxin.com (10.29.252.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Mon, 8 Mar 2021 13:56:46 +0800 Received: from zxbjmbx2.zhaoxin.com ([fe80::4d77:9dba:64a8:8ec3]) by zxbjmbx2.zhaoxin.com ([fe80::4d77:9dba:64a8:8ec3%4]) with mapi id 15.01.2176.009; Mon, 8 Mar 2021 13:56:46 +0800 From: "Tiger Liu(BJ-RD)" To: Kun Qin , Laszlo Ersek , "devel@edk2.groups.io" , "Kinney, Michael D" CC: Sean , "michael.kubacki@outlook.com" Subject: =?UTF-8?B?562U5aSNOiBbZWRrMi1kZXZlbF0gUXVlc3Rpb24gYWJvdXQgU21tIGNvZGUgLyBTdGFuZGFsb25lTW1Qa2c=?= Thread-Topic: [edk2-devel] Question about Smm code / StandaloneMmPkg Thread-Index: AdcQ0ENXjxnDJhSZRGeUL1D048D7bAAJVuWAAAtxkYAArxSbcA== Date: Mon, 8 Mar 2021 05:56:46 +0000 Message-ID: <10e923218757474aac9b59d79812308a@zhaoxin.com> References: <13606bd7c807495abdfd4b908bcc30dd@zhaoxin.com>,<080ea8cb-30a5-2a98-832c-f918c97c9f5c@redhat.com> In-Reply-To: Accept-Language: zh-CN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.28.252.160] MIME-Version: 1.0 Return-Path: TigerLiu@zhaoxin.com Content-Language: zh-CN Content-Type: multipart/alternative; boundary="_000_10e923218757474aac9b59d79812308azhaoxincom_" --_000_10e923218757474aac9b59d79812308azhaoxincom_ Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 SGksIExhc3psbyAmJiBLdW46DQpHb3QgaXQuDQoNClRoYW5rcyBhIGxvdC4NCg0KQmVzdCB3aXNo ZXMsDQq3orz+yMs6IEt1biBRaW4gPGt1bi5xQG91dGxvb2suY29tPg0Kt6LLzcqxvOQ6IDIwMjHE 6jPUwjXI1SAxMDoyMw0KytW8/sjLOiBMYXN6bG8gRXJzZWsgPGxlcnNla0ByZWRoYXQuY29tPjsg ZGV2ZWxAZWRrMi5ncm91cHMuaW87IFRpZ2VyIExpdShCSi1SRCkgPFRpZ2VyTGl1QHpoYW94aW4u Y29tPjsgS2lubmV5LCBNaWNoYWVsIEQgPG1pY2hhZWwuZC5raW5uZXlAaW50ZWwuY29tPg0Ks63L zTogU2VhbiA8c3Bicm9nYW5Ab3V0bG9vay5jb20+OyBtaWNoYWVsLmt1YmFja2lAb3V0bG9vay5j b20NCtb3zOI6IFJFOiBbZWRrMi1kZXZlbF0gUXVlc3Rpb24gYWJvdXQgU21tIGNvZGUgLyBTdGFu ZGFsb25lTW1Qa2cNCg0KSGkgVGlnZXIsDQoNCk91ciB0ZWFtIGhhcyBiZWVuIHNlbmRpbmcgcGF0 Y2hlcyB0byB0aGUgY29tbXVuaXR5IHRvIGNvdmVyIFN0YW5kYWxvbmUgTU0gZHJpdmVyIHRvIHN1 cHBvcnQgeDg2IGFyY2ggcmVjZW50bHkgYnkgYmVsaWV2aW5nIHRoYXQgU3RhbmRhbG9uZSBNTSBp cyB0aGUgZGlyZWN0aW9uIHdlIGFyZSBtb3ZpbmcgdG8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3o7oNCj4gsb7Tyrz+uqzT0LGjw9y78teo09DQxc+io6y99rmp1ri2qMrVvP7Iy8q508Oh o9HPvfu21LG+08q8/rvyxuTE2sjd1/bIzrrOzrS+rcrayKi1xLLp1MShosq508Ohori01sa78teq t6Khow0KPiBDT05GSURFTlRJQUwgTk9URToNCj4gVGhpcyBlbWFpbCBjb250YWlucyBjb25maWRl bnRpYWwgb3IgbGVnYWxseSBwcml2aWxlZ2VkIGluZm9ybWF0aW9uIGFuZCBpcyBmb3IgdGhlIHNv bGUgdXNlIG9mIGl0cyBpbnRlbmRlZCByZWNpcGllbnQuIEFueSB1bmF1dGhvcml6ZWQgcmV2aWV3 LCB1c2UsIGNvcHlpbmcgb3IgZm9yd2FyZGluZyBvZiB0aGlzIGVtYWlsIG9yIHRoZSBjb250ZW50 IG9mIHRoaXMgZW1haWwgaXMgc3RyaWN0bHkgcHJvaGliaXRlZC4NCj4NCj4NCj4gDQo+DQo+DQoN Cg0KDQqxo8PcyfnD96O6DQqxvtPKvP66rNPQsaPD3Lvy16jT0NDFz6KjrL32uanWuLaoytW8/sjL yrnTw6Gj0c+9+7bUsb7Tyrz+u/LG5MTayN3X9sjOus7OtL6tytrIqLXEsunUxKGiyrnTw6GiuLTW xrvy16q3oqGjDQpDT05GSURFTlRJQUwgTk9URToNClRoaXMgZW1haWwgY29udGFpbnMgY29uZmlk ZW50aWFsIG9yIGxlZ2FsbHkgcHJpdmlsZWdlZCBpbmZvcm1hdGlvbiBhbmQgaXMgZm9yIHRoZSBz b2xlIHVzZSBvZiBpdHMgaW50ZW5kZWQgcmVjaXBpZW50LiBBbnkgdW5hdXRob3JpemVkIHJldmll dywgdXNlLCBjb3B5aW5nIG9yIGZvcndhcmRpbmcgb2YgdGhpcyBlbWFpbCBvciB0aGUgY29udGVu dCBvZiB0aGlzIGVtYWlsIGlzIHN0cmljdGx5IHByb2hpYml0ZWQuDQo= --_000_10e923218757474aac9b59d79812308azhaoxincom_ Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable

Hi, Laszlo && Kun:

Got it.

 

Thanks a lot.

 

Best wishes,

=B7=A2= =BC=FE=C8=CB: Kun Qin <kun.q@outlook.com>
=B7=A2=CB=CD=CA=B1=BC= =E4: 2021=C4=EA3=D4=C25=C8=D5 10:23
=CA=D5=BC=FE=C8=CB: Laszlo Ersek <lersek@redhat.com>; devel@edk2.groups.io; Tige= r Liu(BJ-RD) <TigerLiu@zhaoxin.com>; Kinney, Michael D <michael.d.= kinney@intel.com>
=B3=AD=CB=CD: Sean <spbrogan@outlook.com>; michael.kubacki@outlook.com
=D6=F7=CC=E2: RE: [edk2-devel] Question about Smm code / StandaloneMmPkg

 

Hi Tiger,

 

Our team has been sending patc= hes to the community to cover Standalone MM driver to support x86 arch rece= ntly by believing that Standalone MM is the direction we are moving to in t= he long term.

 

From our experience so far, th= e Standalone MM core infrastructure is arch independent and capable of oper= ations such as dispatching MM drivers and managing memory as is. What reall= y 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 jo= ined 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 iso= lation between MM and non-MM environment, since this model is providing cle= aner 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 advanta= ge on that specific point.

 

Thanks,

Kun

 

From: Laszlo Ersek
Sent: Thursday, March 4, 2021 12:55
To: devel@edk2.groups.io; tigerliu@zhaoxin.com; Ki= nney, 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\PiSmmC= ore
>    But it's a traditional smm mode, used launched in U= EFI 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 ba= se?
> 2. StandaloneMmPkg is a MM reference implementation, is it arch indep= endent?
> 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.g= roups.io/g/rfc/message/430

Thanks
Laszlo


>
> Thanks
>
>
>
=B1=A3=C3=DC=C9=F9=C3=F7=A3=BA > =B1=BE=D3=CA=BC=FE=BA=AC=D3=D0=B1=A3=C3=DC=BB=F2=D7=A8=D3=D0= =D0=C5=CF=A2=A3=AC=BD=F6=B9=A9=D6=B8=B6=A8=CA=D5=BC=FE=C8=CB=CA=B9=D3=C3= =A1=A3=D1=CF=BD=FB=B6=D4=B1=BE=D3=CA=BC=FE=BB=F2=C6=E4=C4=DA=C8=DD=D7=F6= =C8=CE=BA=CE=CE=B4=BE=AD=CA=DA=C8=A8=B5=C4=B2=E9=D4=C4=A1=A2=CA=B9=D3=C3= =A1=A2=B8=B4=D6=C6=BB=F2=D7=AA=B7=A2=A1=A3
> CONFIDENTIAL NOTE:
> This email contains confidential or legally privileged information an= d is for the sole use of its intended recipient. Any unauthorized review, u= se, copying or forwarding of this email or the content of this email is str= ictly prohibited.
>
>
>
>
>

 



=B1=A3=C3=DC=C9=F9=C3=F7=A3=BA
=B1=BE=D3=CA=BC=FE=BA=AC=D3=D0=B1=A3=C3=DC=BB=F2=D7=A8=D3= = =D0=D0=C5=CF=A2=A3=AC=BD=F6=B9=A9=D6=B8=B6=A8=CA=D5=BC=FE=C8=CB=CA=B9=D3= =C3=A1=A3=D1=CF=BD=FB=B6=D4=B1=BE=D3=CA=BC=FE=BB=F2=C6=E4=C4=DA=C8=DD=D7= =F6=C8=CE=BA=CE=CE=B4=BE=AD=CA=DA=C8=A8=B5=C4=B2=E9=D4=C4=A1=A2=CA=B9=D3= =C3=A1=A2=B8=B4=D6=C6=BB=F2=D7=AA=B7=A2=A1=A3
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 stric= tly prohibited.
--_000_10e923218757474aac9b59d79812308azhaoxincom_--