From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail05.groups.io (mail05.groups.io [45.79.224.7]) by spool.mail.gandi.net (Postfix) with ESMTPS id E735274003E for ; Thu, 8 Aug 2024 00:21:08 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=OPncc01FJ4Xkk6c2WJe+278HV6WxkowR6YCTSA7VdoU=; c=relaxed/simple; d=groups.io; h=From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:msip_labels:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Resent-Date:Resent-From:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type; s=20240206; t=1723076468; v=1; b=F8U0uT7u3iKkn61MZRSAysqwXQBKiicQPe9Vb4VUj0UZWqnVvBQ7KnoDIB4AKIiN+FJrXkZ4 y9y+2j6qcrL84tgypuiJCr3A1IGsGyCWf+ZHI2cWsUI+jx9RQMoypldviBhhtsLZUSlHvc1zxAF GpHWJ2L01/JCjLiUYl1+RSwzQm3rlKTJ9Uk1MiBP7iu+hrHehMLIISxyjx4dou0xg60YXNrT00G c/c02MEbrTIgyHgwDgzIWcFXT+UZR09tb3xDBBZl6Nw2TMxAxDm91FJCQVVcU92sv+UBAQcZxLm ABBeg9TrxjLRWJZqPodjUHOOY09lRdV0BbPmYHAy28vAQ== X-Received: by 127.0.0.2 with SMTP id W6fZYY7687511xU7YltwqHUp; Wed, 07 Aug 2024 17:21:07 -0700 X-Received: from DM5PR21CU001.outbound.protection.outlook.com (DM5PR21CU001.outbound.protection.outlook.com [52.101.62.113]) by mx.groups.io with SMTP id smtpd.web10.43547.1723062314499445434 for ; Wed, 07 Aug 2024 13:25:14 -0700 X-Received: from BL1PR21MB3160.namprd21.prod.outlook.com (2603:10b6:208:394::10) by BY1PR21MB3894.namprd21.prod.outlook.com (2603:10b6:a03:534::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.5; Wed, 7 Aug 2024 20:25:12 +0000 X-Received: from BL1PR21MB3160.namprd21.prod.outlook.com ([fe80::8526:1b46:61d7:8686]) by BL1PR21MB3160.namprd21.prod.outlook.com ([fe80::8526:1b46:61d7:8686%7]) with mapi id 15.20.7875.002; Wed, 7 Aug 2024 20:25:12 +0000 From: "Kun Qin via groups.io" To: "devel@edk2.groups.io" CC: "Kinney, Michael D" , gaoliming , "'Liu, Zhiguang'" , "afish@apple.com" , "leif@nuviainc.com" , "jiaxin.wu@intel.com" , "Ni, Ray" Subject: Re: [edk2-devel] Proposing v3 of MM communicate buffer Thread-Topic: Proposing v3 of MM communicate buffer Thread-Index: Adro6QAPLf/WRMT7RNuaRkedI6TpYwAHPO2Q Date: Wed, 7 Aug 2024 20:25:11 +0000 Message-ID: References: In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: msip_labels: MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ActionId=8a5f3bc2-1702-443d-84a2-a63e5af27909;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_ContentBits=0;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Enabled=true;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Method=Standard;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_Name=Internal;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SetDate=2024-08-07T16:33:32Z;MSIP_Label_f42aa342-8706-4288-bd11-ebb85995028c_SiteId=72f988bf-86f1-41af-91ab-2d7cd011db47; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: BL1PR21MB3160:EE_|BY1PR21MB3894:EE_ x-ms-office365-filtering-correlation-id: d61d30e1-8d60-4bb5-949b-08dcb71f0a11 x-ld-processed: 72f988bf-86f1-41af-91ab-2d7cd011db47,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antisp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9Se3RWS7H7iaIdDE8k0aXKylk3uQ2MizqFcbY?= =?us-ascii?Q?YDBRQ4RKoASVq2VHwjyxU/JEdxr76Lqu2nsCqiVyO6eRQpoZvsxwQvLQW585?= =?us-ascii?Q?PnQynevazvtIfUk5PcUv2lAkkZRNnjAU2cPrs9Cxp5hvFb4tC+Yw3Bo5Kzf8?= =?us-ascii?Q?fmwo/uQ+dlPjvwQ70XHtEXgpsanhfE27ugnzn4+cDu8ha8Mun15LbPVDRDgb?= =?us-ascii?Q?CIsbMJieH5RRGngVcGbKEQWeA6r300ua9OG8QmKTmYqOo7wBNgo179Ek7FpP?= =?us-ascii?Q?6sZpsc9qMypEs3vXNMO43Nwkkeqj/scjd+/mrrV9tl1ApqiQML4mczVPT0PE?= =?us-ascii?Q?XG0174Vj1nLqfIl4mVE8QM2LmL6SfZPwdYaTZEdIGwezhXkZPwnp2+h0ZxnE?= =?us-ascii?Q?F6zEWTgmmSZ2qjUCuoklknmQVi4MdUeTgW1nIbZHD7VdNzigVzdspt0ONvA1?= =?us-ascii?Q?kdhKLj+DCFVZbMtr4e0rcJaV3HXhiofbdlJ+zwFH16wiJXdCc3Z0wT3vJfgX?= =?us-ascii?Q?43/b9Bg=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?pyLbqBdWuHRXNk5u5CSjfvi5AHttvrW04ZLNJaXNolTnrl75nWQ2DuTFyRSN?= =?us-ascii?Q?f43MjgIqriclLvaTi6aKC0bbwQInks146s/qs6HUyF5P8Bcv4+QIKXvTQqSL?= =?us-ascii?Q?oVJ6OS8TmRItTDw9j37yBHClig/lNt+GWnqMWWEoUsE++WGidWYAOKNihjAx?= =?us-ascii?Q?dPMzcmGrBEW2+Y+LrTtUxfbhFM3siUh5HKuukYoLpS2GbEIF9Nu57CdJmNiU?= =?us-ascii?Q?u1T9MdIYlMZpcC7KU224y93GQlMskTzvjWSu16gz2W/m6Ka+Yo4VcfWq/HZZ?=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ylMhGeFBd9SKWTOg1odsuCijL+?= =?us-ascii?Q?hNbXIK2uoG6X+RTngBMMB3ZukunHdQVaIIHfFYwHUfsEctjmrKEM+ONjzJsd?= =?us-ascii?Q?RmvDnQKjBye35uLc5Kex3viKdlk87bmd634MvpM6Re9uhQ6xSwDzj36KBiL8?= =?us-ascii?Q?tYE+qp9D7TxN8pcClZDISu+Y+ynLDIZmyYDcqnD550I7uLOIP1fIZh+PBhFD?= =?us-ascii?Q?ZK3tN2yWvUNx7ekxz/zTNGRIXYhp0lBXMt7Nj2BDyXobA8MJ/5ut70ilIRTh?= =?us-ascii?Q?ub9QHMmkSGJ3qqV4ixIbfVTvLbXLlLNXQja2xkoy9Ndk5c7brfIyuVBhwryL?= =?us-ascii?Q?TEO6S6JFU+AlzZuL76VuGVlyJHA/RYFIBLZI+Qp6i6LJaH0eCCUzEt7FG4oj?= =?us-ascii?Q?VQNN9zdMErSBlHLQetELhEKHF3F7toBiIrhHLDORXXsw16lA0JSFgmRA9Zy5?= =?us-ascii?Q?G7u/533OwN05PWaZxC5kD7c=3D?= MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BL1PR21MB3160.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: d61d30e1-8d60-4bb5-949b-08dcb71f0a11 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Aug 2024 20:25:11.9929 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: QbWhgSEVTN+iIfsIkB8nVb8VyuuG1iAwEo0dDwQlb0h6yC4GC6umtE9jSEYxPzi/pKGC4J6+UvSMD6HtskzbBQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR21MB3894 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Resent-Date: Wed, 07 Aug 2024 17:21:06 -0700 Resent-From: Kun.Qin@microsoft.com Reply-To: devel@edk2.groups.io,Kun.Qin@microsoft.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: fFM3rDNLxS8R2EaChJSd7VsXx7686176AA= Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_BL1PR21MB3160992B19CE9BB2656560CDE9B82BL1PR21MB3160namp_" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=F8U0uT7u; dmarc=pass (policy=none) header.from=groups.io; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 45.79.224.7 as permitted sender) smtp.mailfrom=bounce@groups.io --_000_BL1PR21MB3160992B19CE9BB2656560CDE9B82BL1PR21MB3160namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Adding stakeholders. Regards, Kun From: Kun Qin Sent: Wednesday, August 7, 2024 11:15 AM To: devel@edk2.groups.io Subject: Proposing v3 of MM communicate buffer Hi all, I am trying to propose a change into PI spec and would like to gather some = feedback in this forum. Essentially, the current communicate header contains a UINTN field in place= , which is causing programing errors when trying to communicate the message between different operation m= ode (i.e. PEI in IA32 communicate into MM in x64). There are various implementations at large to = compensate for this size discrepancy through the edk2 codebase, thus fixing the existing commun= icate buffer definition will be less feasible. Thus I think proposing a new structure and implement= the corresponding header parser will be a simpler approach, which also allows a bit more flexibility= to inject new features/checks into the communication channel. The proposed change for the spec is detailed here: https://github.com/kuqin12/edk2/blob/BZ3398-MmCommunicate-Length-v4/CodeFir= st/BZ3430-SpecChange.md And the code first change is listed here: https://github.com/kuqin12/edk2/blob/BZ3398-MmCommunicate-Length-v4/ Could you please provide me with any feedback that you think might be helpf= ul for future usage of MM communicate? Any input is appreciated. Regards, Kun -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#120287): https://edk2.groups.io/g/devel/message/120287 Mute This Topic: https://groups.io/mt/107775882/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- --_000_BL1PR21MB3160992B19CE9BB2656560CDE9B82BL1PR21MB3160namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Adding stakeholders.

 

Regards,

Kun

 

From: Kun Qin
Sent: Wednesday, August 7, 2024 11:15 AM
To: devel@edk2.groups.io
Subject: Proposing v3 of MM communicate buffer

 

Hi all,

 

I am trying to propose a change into PI spec and wo= uld like to gather some feedback in this forum.

 

Essentially, the current communicate header contain= s a UINTN field in place, which is causing programing

errors when trying to communicate the message betwe= en different operation mode (i.e. PEI in IA32

communicate into MM in x64). There are various impl= ementations at large to compensate for this

size discrepancy through the edk2 codebase, thus fi= xing the existing communicate buffer definition

will be less feasible. Thus I think proposing a new= structure and implement the corresponding header

parser will be a simpler approach, which also allow= s a bit more flexibility to inject new features/checks

into the communication channel.

 

The proposed change for the spec is detailed here:<= o:p>

https://github.= com/kuqin12/edk2/blob/BZ3398-MmCommunicate-Length-v4/CodeFirst/BZ3430-SpecC= hange.md

 

And the code first change is listed here:
https://github.com/kuqin12/edk2/blob/BZ3398-MmCommunicate-Length-v4/<= /a>

 

Could you please provide me with any feedback that = you think might be helpful for future usage of MM

communicate? Any input is appreciated.

 

Regards,

Kun

 

_._,_._,_

Groups.io Links:

=20 You receive all messages sent to this group. =20 =20

View/Reply Online (#120287) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--_000_BL1PR21MB3160992B19CE9BB2656560CDE9B82BL1PR21MB3160namp_--