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 076957803DE for ; Mon, 17 Feb 2025 15:51:48 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=qOG/hWHXn0dgOLThYPdPwJn3uJTopizfCRxDeIso7J0=; c=relaxed/simple; d=groups.io; h=From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language: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=20240830; t=1739807508; v=1; x=1740066707; b=u38dMVWAs7injE2wIBvcXS4AOLoMYQUxNBx001Fi+/TfkDT8/gOpYfNUCOkhNmAgXClprlkd QAgguHSloJlzBFQbiGGc+yScaCmAqKCRvdmQhnoKWyzEEtozyW1NH1b9imjpJhahFzIOEDFtgNC p6tKBMjjxGgjrDQAYQ/0OXJri1P4ZWg+BixLyl8vFkVObcVjYiq7XB68nyJwHMEQaB8bnDUKcdD ggmHVPNvMuBDJKwDp4r2lv9oEXHmzerybg3DaIivrws/Mp7Aotc45HSNxNnrErOSEooxymegnSL f7gfFdaT/gBlHOBi0ffgOHfkEtRymmj0DQ/q5poYiT3Fg== X-Received: by 127.0.0.2 with SMTP id mEQfYY7687511xLGzcwn47pY; Mon, 17 Feb 2025 07:51:47 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.17]) by mx.groups.io with SMTP id smtpd.web10.55211.1739807506805559892 for ; Mon, 17 Feb 2025 07:51:46 -0800 X-CSE-ConnectionGUID: 9QYM2nT9TJSVw2ikjKGiOw== X-CSE-MsgGUID: znxxFYIqTMKhlwCT5LKB7g== X-IronPort-AV: E=McAfee;i="6700,10204,11348"; a="40519484" X-IronPort-AV: E=Sophos;i="6.13,293,1732608000"; d="scan'208,217";a="40519484" X-Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Feb 2025 07:51:46 -0800 X-CSE-ConnectionGUID: 3D+HK7LoSearjv8Q7Brniw== X-CSE-MsgGUID: wn9B+lSlTSitcl6TwvddIw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,224,1728975600"; d="scan'208,217";a="114628407" X-Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by orviesa007.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 17 Feb 2025 07:51:46 -0800 X-Received: from ORSMSX901.amr.corp.intel.com (10.22.229.23) by ORSMSX603.amr.corp.intel.com (10.22.229.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.44; Mon, 17 Feb 2025 07:51:45 -0800 X-Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by ORSMSX901.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.14 via Frontend Transport; Mon, 17 Feb 2025 07:51:45 -0800 X-Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.173) by edgegateway.intel.com (134.134.137.100) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.44; Mon, 17 Feb 2025 07:51:43 -0800 X-Received: from PH7PR11MB5943.namprd11.prod.outlook.com (2603:10b6:510:13f::19) by PH0PR11MB7587.namprd11.prod.outlook.com (2603:10b6:510:26d::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8445.18; Mon, 17 Feb 2025 15:51:25 +0000 X-Received: from PH7PR11MB5943.namprd11.prod.outlook.com ([fe80::15cc:b461:7bb8:b69f]) by PH7PR11MB5943.namprd11.prod.outlook.com ([fe80::15cc:b461:7bb8:b69f%4]) with mapi id 15.20.8445.015; Mon, 17 Feb 2025 15:51:25 +0000 From: "Jayaprakash, N via groups.io" To: Yoshinoya , "devel@edk2.groups.io" CC: "Kinney, Michael D" , "pedro.falcato@gmail.com" Subject: Re: [edk2-devel] Python-3.6.8 UEFI : fork support Thread-Topic: Re:Re: [edk2-devel] Python-3.6.8 UEFI : fork support Thread-Index: AQHbgOaK4IMzipTGaE2BKYCs5pBiKLNK9Y8AgABigICAAEt3sA== Date: Mon, 17 Feb 2025 15:51:25 +0000 Message-ID: References: <6e9b7ba0.2bb1.19511cf27cb.Coremail.yoshinoyatoko@163.com> <4e160940.9691.195139cb533.Coremail.yoshinoyatoko@163.com> In-Reply-To: <4e160940.9691.195139cb533.Coremail.yoshinoyatoko@163.com> Accept-Language: en-IN, en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR11MB5943:EE_|PH0PR11MB7587:EE_ x-ms-office365-filtering-correlation-id: f53bf51f-fa02-4099-6f1f-08dd4f6aef00 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: =?us-ascii?Q?yx9ECsNkmt4rG5BBPw3TJz5YF10tD5GDnRGMfIdhwDfpZr2E0kekmhNtxtIG?= =?us-ascii?Q?CTAu5OvNg2szh5ppBeW1+vjltxbCBpMhKxMtFNHred1CyAqEALq0EE61o9u8?= =?us-ascii?Q?zPiMw8jw/6Bt5a6u3EKnG9v6haa/ZDUupWpJebIugHDosTrRQ3C6j9gBZOjV?= =?us-ascii?Q?JuHfZwBTjIBT6PkRvZC+/97fOQmHIJm7yDyTQqdFFspbw0QTOu8jlIfKMkKi?= =?us-ascii?Q?GYXqnFeiD3c/3qDWq4nW0ICgkFHST1bbgXXjKXP4d+fn0SQeLbK5hlMpzMYt?= =?us-ascii?Q?0T3+Gcw3qIT51VVSSJDT3e2y3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ascii?Q?iTI5jLz8dIzLjF3q6P9LB3tChVW4AJ/EaK5ppRPqO7aXBhjeWEuc41ouA5uu?= =?us-ascii?Q?fxmahZ3/j7mCIShC6w7lT/JC0sqg/H1pL1P/gr9sE15xEJxd668O0O/PBox6?= =?us-ascii?Q?d1gXOmrNIC8mGdy8FX/7y8SLEMOZQAfo481wKYsXQSwRa0hlpmJtrMs1ynuj?= =?us-ascii?Q?UlP5x6CudGxco9LjMFhjQWtAFGqfqgYsRMqzS96AMh0ZhRsZXA=3D=3D?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?xn3M3mPqcPzs/BjnQWwIpEbKSPTRy2K6btNUB3PV7V2GyRfpXbYp25FF5JyT?= =?us-ascii?Q?WS31dNbayVHwvknLrtFbW0HpSxVrqNiTYN7csToqlR8DD4DUaR7rzYYxTtsV?= =?us-ascii?Q?E/Sm4ACwPC1XD84ymrAI+p8SjLSBeGAUQYdgILH62GhUYFgcxdZG+vIpyOBn?= =?us-ascii?Q?pEWQWOIkbuscID8sDck3BuEtULOGttkpHEkuGFZgeHfc/HTDvBFZa85qTkm/?= =?us-ascii?Q?S7utsDYI4qkJxJTU71EQLy9xH0z0FCy3wE9cUvfo5jLtS3B8o2VlZeO3r16B?= =?us-ascii?Q?+bPGHoWUZ24AwEcEQdlx2kPHE7ELCIb9SoRZ5jr+TY0lVqOLjm0fivpwnWNw?= =?us-ascii?Q?S2aLZ3jwnqSKAQOplHw2d0Mz/Fx+FoeZxeFK3+Bdf+SRPRjZmnoBbUmE9SXd?= =?us-ascii?Q?chjXZdfjiuAqyfD+bkHFnz3/qW1DhIc7OnsE4T74tB2PVE0r3k7XXtDoHg8E?= =?us-ascii?Q?1+/9LDF9S0bxCnaQbiFWfvmv17x7JgEFBMzEzKdVo7CNOqE0HnnG6ONNJAnV?= =?us-ascii?Q?+h5/1/NwEQjKIQCrai3Ph7xhUj1SkECBBh+PmVXqMGwbJVrz5uauMt0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Mdnu0bWD6xAEmguK5hoGg1hry5jlA01oU51oen7Cw1muuX1Ze9C/?= =?us-ascii?Q?LgFERZDv4efkBpmVo75NbdgqzMb1TFIOh2aT5DdB+8S48eiw6/uD46SeGbJO?= =?us-ascii?Q?I/DIG8xalzcOEzVYQalJPCP/qHjLx/amvyTzCp+I?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH7PR11MB5943.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: f53bf51f-fa02-4099-6f1f-08dd4f6aef00 X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Feb 2025 15:51:25.1307 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: z3Nbz66l+EC/OD/vcO/xQPa0toNgSceB9OptDzJiRVrUWIbMaoDtYfeszixir0UCsLHcdLRP/Lszary24wmJnA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH0PR11MB7587 X-OriginatorOrg: intel.com 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: Mon, 17 Feb 2025 07:51:46 -0800 Resent-From: n.jayaprakash@intel.com Reply-To: devel@edk2.groups.io,n.jayaprakash@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: 1fuHBlFB9zJvvrmdYbDlZ9yMx7686176AA= Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_PH7PR11MB59431209ECE9F1E200D56FC6EEFB2PH7PR11MB5943namp_" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b=u38dMVWA; 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_PH7PR11MB59431209ECE9F1E200D56FC6EEFB2PH7PR11MB5943namp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Yoshinoya, The MP Services UEFI protocol has been used to run the CPUID instructions o= n a given CPU core and to read / write the MSRs from given CPU core. The python functions for this purpose are supported from the edk2module bui= lt in extension module are respectively cpuid_ex, rdmsr_ex/ wrmsr_ex with = the function signatures as given below. cupid_ex has the following signature cpuid_ex(cpu, eax, ecx) -> (eax:ebx:ec= x:edx) rdmsr_ex(cpu, msr) -> (lower_32bits, higher_32bits) wrmsr_ex(cpu, msr, lower_32bits, higher_32bits) -> None where the cpu parameter refers to the cpu core number starting from 0, 0 be= ing BSP. The usage instructions and code sample are not yet updated in the wiki. I c= an add more details at the earliest. Please use the edk2-libc discussions page for any further questions / discu= ssions. https://github.com/tianocore/edk2-libc/discussions Regards, JP From: Yoshinoya Sent: Monday, February 17, 2025 4:43 PM To: devel@edk2.groups.io; Jayaprakash, N Cc: Kinney, Michael D ; pedro.falcato@gmail.com Subject: Re:Re: [edk2-devel] Python-3.6.8 UEFI : fork support hi, JP Got it, thank you! I found some uefi mp service functions's call sample in edk2module.c So, user could follow this sample and write multi process sample with pytho= n script ? best wishes, At 2025-02-17 13:23:58, "Jayaprakash, N via groups.io" > wrote: Hi Yoshinoya, It's not supported in UEFI. You can see that macros are not defined as part of pyconfig.h https://github.com/tianocore/edk2-libc/blob/master/AppPkg/Applications/Pyth= on/Python-3.6.8/PyMod-3.6.8/Include/pyconfig.h So this functionality doesn't get compiled for UEFI. Regards, JP From: Yoshinoya > Sent: Monday, February 17, 2025 8:19 AM To: Kinney, Michael D >; pedro.falcato@gmail.com; devel@= edk2.groups.io; Jayaprakash, N > Subject: [edk2-devel] Python-3.6.8 UEFI : fork support Hi, Michael I am studying Python368 uefi code. I have a question, ask for help. I found some marco defines in edk2module.c "HAVE_FORK / HAVE_FORK1 / HAVE_SPAWNV / etc" It seems about multi-thread support functions, so my question is: 1. Have these functions been tested on uefi shell environments? 2. Are there any code samples for study how to use them? Thank you very much. best wishes, -=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 (#121128): https://edk2.groups.io/g/devel/message/121128 Mute This Topic: https://groups.io/mt/111225588/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_PH7PR11MB59431209ECE9F1E200D56FC6EEFB2PH7PR11MB5943namp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Hi Yoshinoya,

 

The MP Services UEFI proto= col has been used to run the CPUID instructions on a given CPU core and to = read / write the MSRs from given CPU core.

The python functions for t= his purpose are supported from the edk2module built in extension module are= respectively cpuid_ex, rdmsr_ex/  wrmsr_ex with the function signatures as g= iven below.

 

cupid_ex has the following= signature cpuid_ex(= cpu, eax, ecx) -> (eax:ebx:ecx:edx)

rdmsr_ex(cpu, msr) -> (lower_32bits,= higher_32bits)

wrmsr_ex(cpu, msr, lower_32bits, higher= _32bits) -> None

 

where the cpu parameter= refers to the cpu core number starting from 0, 0 being BSP.

 

The usage instructions and= code sample are not yet updated in the wiki. I can add more details at the= earliest.

 

Please use the edk2-libc d= iscussions page for any further questions / discussions.<= /p>

https://github.com/tianocore/edk2-libc= /discussions

 

Regards,=

JP

 

From: Yoshinoya <yoshinoyatoko@16= 3.com>
Sent: Monday, February 17, 2025 4:43 PM
To: devel@edk2.groups.io; Jayaprakash, N <n.jayaprakash@intel.com= >
Cc: Kinney, Michael D <michael.d.kinney@intel.com>; pedro.falc= ato@gmail.com
Subject: Re:Re: [edk2-devel] Python-3.6.8 UEFI : fork support

 

hi, JP

Got it, thank you!

 

I found some uefi mp service functions's= call sample in edk2module.c

 

So, user could follow this sample and wr= ite multi process sample with python script ? 

 

best wishes,

 

 

 

 

At 2025-02-17 13:23:58, "Jayaprakash, N via groups.io&qu= ot; <n.jayaprakas= h=3Dintel.com@groups.io> wrote:

Hi Yoshinoya,

 

It’s not supported in = UEFI.

 

You can see that macros are = not defined as part of pyconfig.h

https://github.com/tianocore/edk2-libc/blob/= master/AppPkg/Applications/Python/Python-3.6.8/PyMod-3.6.8/Include/pyconfig= .h

 

So this functionality doesn&= #8217;t get compiled for UEFI.

 

Regards,=

JP

 

From: Yoshinoya <yoshinoyatoko@163.com>=
Sent: Monday, February 17, 2025 8:19 AM
To: Kinney, Michael D <michael.d.kinney@intel.com>; pedro.falcato@gmail.com; devel@edk2.groups.io; Jayaprakash, N <n.jayaprakash@intel.com>
Subject: [edk2-devel] Python-3.6.8 UEFI : fork support

 

Hi, Michael

I  am studying Python368 uefi code.

I have a question, ask for help.

 

I found some marco defines in edk2module.c

"HAVE_FORK / HAVE_FORK1 / HAVE_SPAWNV /= etc"

 

It seems about multi-thread support function= s, 

so my question is:

1. Have these functions been tested on uefi = shell environments?

2. Are there any code samples for study how = to use them?

 

Thank you very much.<= /o:p>

 

best wishes,

_._,_._,_

Groups.io Links:

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

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

_._,_._,_
--_000_PH7PR11MB59431209ECE9F1E200D56FC6EEFB2PH7PR11MB5943namp_--