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 AF4C6AC1BFA for ; Wed, 7 Aug 2024 19:56:16 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=3u/TEwPhK24pqF6KoLzUDnMb+sk9z/B6uw91kkJuW2I=; c=relaxed/simple; d=groups.io; h=From:To:Subject:Thread-Topic:Thread-Index:Date:Message-ID: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=1723060576; v=1; b=4jVT3RoLic608W3TAOO8Qrofoyg/WuH8zwUQ+FTw92f+FTHTjCRMYzbxR9/CTdRv9/7l1knC ee02WDJLEQxY+8L/NDPPzrLMRndXmWnMlPaByn1KALJRFpTsSvG9ZhXpdTKNro2uLCwuFXl6N+P fP9+/ghPd1fILy9YPzVAOBNa5Di3Faroy1dTjNliq4lGyiIfNUhrzQJRh8TGSb0NPWsV7I+T5yj kLyhfUj+1svCoeslOrn8ObsqQOk6OEoMhTkKTm4JDDZPxSaNmdLT+HHOIPgI5+vEi1btHw4R9XX P0HLuO0Pep9m/4QRQ+Zf1UzcoSOQ6i1TzRuYlrlbM4hsQ== X-Received: by 127.0.0.2 with SMTP id zOT4YY7687511xNLaqmOmYza; Wed, 07 Aug 2024 12:56:15 -0700 X-Received: from CY4PR05CU001.outbound.protection.outlook.com (CY4PR05CU001.outbound.protection.outlook.com [40.93.198.117]) by mx.groups.io with SMTP id smtpd.web11.40431.1723054498953987031 for ; Wed, 07 Aug 2024 11:14:59 -0700 X-Received: from BL1PR21MB3160.namprd21.prod.outlook.com (2603:10b6:208:394::10) by BY5PR21MB1474.namprd21.prod.outlook.com (2603:10b6:a03:21f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7875.7; Wed, 7 Aug 2024 18:14:56 +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 18:14:49 +0000 From: "Kun Qin via groups.io" To: "devel@edk2.groups.io" Subject: [edk2-devel] Proposing v3 of MM communicate buffer Thread-Topic: Proposing v3 of MM communicate buffer Thread-Index: Adro6QAPLf/WRMT7RNuaRkedI6TpYw== Date: Wed, 7 Aug 2024 18:14:49 +0000 Message-ID: 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_|BY5PR21MB1474:EE_ x-ms-office365-filtering-correlation-id: 7c1f84a0-5caf-4fb1-26ac-08dcb70cd368 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: =?us-ascii?Q?t30IzO4PTjHbqPkJWpXYxqOia+hpdkTzV/b4EekN7F9uQ7hQaUA6K2xko/SU?= =?us-ascii?Q?xdTPhWtJL+bP7fgvZ0/n3KdruHKBF0EXYAqqd75NxI2j8aGZToi/GFhhQED2?=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DE/KEU8iW+49g2FNF2jLAw?= =?us-ascii?Q?7DpwYs3RDGAhns4bmQyITZY5QL23+pilbnA0Xgt6B0OjSEPP3xK72RZqQwH8?= =?us-ascii?Q?ygpteSgcE2Yz8CXE6KukOEl/gdE6w0fzVDpIyy6HowNDedIyPMH4VfQnGg3u?= =?us-ascii?Q?M9wCN3EnIrJtIGu8fTcNfY8816ZN2KCeLrouAwfFVSBzKgzTouiniSaI/1pw?= =?us-ascii?Q?VroI8Xp1VroQIOQSp7JGn50rGZxGRSQLZX8FgWCey1MEbkfdn2v+t4zvRYf1?= =?us-ascii?Q?N2Kelmvi0wKLIOYMrnJ0jmrdcjVdWM4vktbu3+xuH14gpVicklMDFBbtPvga?= =?us-ascii?Q?t5/rEYldKrSJRdFa5Ol6r44aDccheV6c09IHOdqSViBYUiUHI5enR5JXy9s9?= =?us-ascii?Q?79a0qMc=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?U4qEK9veUrmWWNBSaP77GKIJQSN4n1KAS6McvbJg2kCng8MfL7dBKO4kmoJL?= =?us-ascii?Q?VY3IBAQ4uIR8bDIEAzSKjEbtadOS38L66zE8k/6PKFKKWHvhu5Vb67tBTjA0?= =?us-ascii?Q?sgPONCWNZvWDjNivrRJ8ukS3J/eH8hftY+taUENoPSmvBlA2bBy8smIEYI4F?= =?us-ascii?Q?T5vBpQ3CkBl9jYpj7/RULVEHZYnn+SBb2rAspddJg9UIRlap5k4CWVnpdP6m?= =?us-ascii?Q?2GSG9C/w6507K1mthWOmNZEsGlK8H01x/yqPhYF2CsDDC2ANTI1v05aHZ05N?= =?us-ascii?Q?PST2UEMtFQHYPsroeW/NoC3qh6TMqdtt97ioF1ZiMxexKRxwwvT1T/Rrb2sN?= =?us-ascii?Q?wE2EqO7bJ0rma1uf/XOU2EbOK098R/otRbNQ4ph9Me1kZk7pzhp+OeX8ab0c?= =?us-ascii?Q?CC1Op9naLWUEWUpMyTnq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=?us-ascii?Q?KYccPo/3KGkuYXXJmonhxRdFt51iTxLHQ/cxRTaMnF5SqgnpqROKKj4aj9WP?= =?us-ascii?Q?TrweB8QEUdkmA2Gp7MzjGDyl9y0yq8U5go29pLbMOoMkqujJMQVPVzyXU4VZ?= =?us-ascii?Q?nACgphxT8YytGi9mGCTYSY0oP/RGKwtMVU1CMIh/jsiADX19K1tmyyzTXX0G?= =?us-ascii?Q?/1r4jo58QfLyITAJ6HInkMse5ic9209/F2YA+YnWrmiH6b2Y2/8c90I3E6S4?= =?us-ascii?Q?f2aSuMmsaXIAmWyVaKI7uh25+p9Xoh+piiPWLL8SpjsBjbO1ez7RwWY4BaqM?= =?us-ascii?Q?MuiGOD8xgmPsqe+xUrQT1fU=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: 7c1f84a0-5caf-4fb1-26ac-08dcb70cd368 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Aug 2024 18:14:49.3933 (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: uNKPsda2hVntzEr9oHJvXojbzIvuXWvyJi/u9m8yoKR+oZcLtZ5dZQk0Q9LrQImtcFhLZyg8JkMv090n6bdr6A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR21MB1474 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 12:56:14 -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: hHDam19msrCHSBrzLCip72ebx7686176AA= Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_BL1PR21MB3160D99BE89B67E601F184C2E9B82BL1PR21MB3160namp_" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240206 header.b=4jVT3RoL; 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_BL1PR21MB3160D99BE89B67E601F184C2E9B82BL1PR21MB3160namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable 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 (#120286): https://edk2.groups.io/g/devel/message/120286 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_BL1PR21MB3160D99BE89B67E601F184C2E9B82BL1PR21MB3160namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

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 (#120286) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--_000_BL1PR21MB3160D99BE89B67E601F184C2E9B82BL1PR21MB3160namp_--