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 9119C78003C for ; Fri, 16 May 2025 04:24:49 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=jtwA+s1hHV5+u8vnOu7nThFyyVAN/hBRTZb4toWf9jY=; 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=1747369489; v=1; x=1747628687; b=dzaKPqnK1O6SPA/C1lwpZzLnOWoDWtu+BDIg+3QPgrAG+XCW5pPCRpmLYuiIk+OZDexqM0mb ThDn7n7FSwg+sk1av/EZUC2+V7DGCoKuK0xXiXRm9PvxMgd2pozvfyArcegXS4OUWs7nWbbpaVX 5DgQ8ui/D9tTwOyEl/iWZRy420mOn1vh1SZKAQ63oYz6bU54zAeoKOK2MiEn6XuAa/vr5q2s02L LylElJ7bYJ0MtICST7IVpF/GwlQQwFkFEb7GUIxXNxjxaNbcDiL+LJ7NAYhwBWKk2Hydx0iAEek E/a9yejFht1hzNOCueo+WTKyn6oHFIcgWMf6NtzT6pvTA== X-Received: by 127.0.0.2 with SMTP id ZwoNYY7687511x21pwPwGSaD; Thu, 15 May 2025 21:24:47 -0700 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mx.groups.io with SMTP id smtpd.web11.5978.1747369486033398683 for ; Thu, 15 May 2025 21:24:46 -0700 X-CSE-ConnectionGUID: uQdRPVu0TOuJNi+evZPzLQ== X-CSE-MsgGUID: 2hUcbsPYQkWR3TR603hwxA== X-IronPort-AV: E=McAfee;i="6700,10204,11434"; a="66734172" X-IronPort-AV: E=Sophos;i="6.15,293,1739865600"; d="scan'208,217";a="66734172" X-Received: from orviesa008.jf.intel.com ([10.64.159.148]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2025 21:24:45 -0700 X-CSE-ConnectionGUID: oIVoK2XbSNerj8heBgke8Q== X-CSE-MsgGUID: URGz1B90TVGNedB7hhZGCg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,293,1739865600"; d="scan'208,217";a="139457936" X-Received: from orsmsx902.amr.corp.intel.com ([10.22.229.24]) by orviesa008.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 May 2025 21:24:46 -0700 X-Received: from ORSMSX901.amr.corp.intel.com (10.22.229.23) by ORSMSX902.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.14; Thu, 15 May 2025 21:24:44 -0700 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; Thu, 15 May 2025 21:24:44 -0700 X-Received: from NAM11-BN8-obe.outbound.protection.outlook.com (104.47.58.175) 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; Thu, 15 May 2025 21:24:44 -0700 X-Received: from PH7PR11MB5943.namprd11.prod.outlook.com (2603:10b6:510:13f::19) by DM4PR11MB5262.namprd11.prod.outlook.com (2603:10b6:5:389::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8722.32; Fri, 16 May 2025 04:24:01 +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%6]) with mapi id 15.20.8722.027; Fri, 16 May 2025 04:24:01 +0000 From: "Jayaprakash, N via groups.io" To: "devel@edk2.groups.io" , "yoshinoyatoko@163.com" CC: "Kinney, Michael D" , "pedro.falcato@gmail.com" Subject: Re: [edk2-devel] Python-3.6.8 UEFI : fork support Thread-Topic: [edk2-devel] Python-3.6.8 UEFI : fork support Thread-Index: AQHbxT5ufKR+7PSCq0KQsX2uQYMVGbPUqMPg Date: Fri, 16 May 2025 04:24:01 +0000 Message-ID: References: <6e9b7ba0.2bb1.19511cf27cb.Coremail.yoshinoyatoko@163.com> <4e160940.9691.195139cb533.Coremail.yoshinoyatoko@163.com> <1f076433.426c.1951774af8d.Coremail.yoshinoyatoko@163.com> <20a5324c.208d.196d1b4289c.Coremail.yoshinoyatoko@163.com> In-Reply-To: <20a5324c.208d.196d1b4289c.Coremail.yoshinoyatoko@163.com> Accept-Language: en-US, en-IN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: PH7PR11MB5943:EE_|DM4PR11MB5262:EE_ x-ms-office365-filtering-correlation-id: 87e25dc4-fdd6-4e83-d5a2-08dd94317c1a x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: =?iso-2022-jp?B?RCsrdFlRd2VjUE9SbzlUYVpjSnpvaDUyUHQ0MWc2cU11SUxydm9SakVt?= =?iso-2022-jp?B?WC9mcSs4VFNNcTdYY21mdlFzU2dYcW9lbFV1RUlsbmYxSG9SUlhJL0R2?= =?iso-2022-jp?B?R1ZrWm1ZN2JmUWc3bmJucVYxcVI0TU50dndqSTlDK1c1SUpEWXNYUFJC?= =?iso-2022-jp?B?Y1hvYlgzbmF2Y1FmNTFqNUdteDdmZmZrTHRhak4xbmNPK0dOS3ZFaC9F?= =?iso-2022-jp?B?VGJmWlJpMEpUOE5kcmMyYTRybk9WbUd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0JOeTlo?= =?iso-2022-jp?B?NVJtNXQ2M3ZzeU9kQ2dYeWt6a2s4QnBBNGxrYyt1Y0tubUU3YVc5Qm9Q?= =?iso-2022-jp?B?b3k=?= x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?iso-2022-jp?B?alFvWU5iMis3UHlwUlV4Tmh3RXhxZTl3VHJyVHd2ellGTVBVRmhQZ2dt?= =?iso-2022-jp?B?RHcvUHdpTnptSEZxZUQwL3l1UXY3RDlsYVNWdGJWRWFuSzgzcGJMN2NS?= =?iso-2022-jp?B?b01OdE9hYUJwVTF5dVdqMDdJRmJnV2daMnJCQUtIVGd1V2ZpdDZ0VFky?= =?iso-2022-jp?B?azF1ZzdnbTV4MzRaMWQ3WmRoOUl2cWpobndlOXlSU0M3TTR6U1NCVHBv?= =?iso-2022-jp?B?cEFkNlphdENlalh0dFVzYjlOY0pVT0lOYituTG9TRWtMOTBaaGZRd0pZ?= =?iso-2022-jp?B?VlM0VnRzQmpDVTd2OVh1VW40N29KN3hkaUgyT1gzRTR3eUNLR0Y2NjVE?= =?iso-2022-jp?B?SEg3WEJqSVY5cEl4dVJGL0tlcWdIZHMvckwyQXp5RGlaSW51Z2xZQVVS?= =?iso-2022-jp?B?WlFrU1hhRm5DTUJmWWl1Yi9PQ0ZxaFZ0N2pNWGZaTkZGK2lVY09jckVv?= =?iso-2022-jp?B?U25icG1XMHFvYndoUlk2SndnZFMwdEFNWUQ0Z29EdzRFcWpXQ1BZVFZ2?= =?iso-2022-jp?B?QVVJMnZtZ3RrbFl3OG1QQlhjTnhHcEtTRmNCYS82WFBjUkc5N3pxUkxD?= =?iso-2022-jp?B?MDAzaWRDbUwrcU1rdFRPaCt5Z3hwSnhLcnBndEZCRGE4bUhJQUlsVi9I?= =?iso-2022-jp?B?ZUJtS2hWSU1IMVA3cjdmY1VhREYvVXFpWWxUbjdlWWZRMUJ6RW82aHBp?= =?iso-2022-jp?B?NmdKVmQ0VTJRbG5xM0MxaDc1Y0U4bGhaY1VaWVZOU3VLWnBCMHJTOGZM?= =?iso-2022-jp?B?K3pLRG9uY1I1RjRNd0NOUHRJWXBDNnlHYmprdnNaVXJ5Y2Fjelgwc0s5?= =?iso-2022-jp?B?NXFKR2pQR3laMjBobEQwdDZpUFRycEJObDJXWEVoS1A0VFkrUExhcTQ0?= =?iso-2022-jp?B?dEUwNCswLzh0bTVoNDErSmFCTFF4c2VXMC9CenJHdmtxeDdkOThHdys1?= =?iso-2022-jp?B?YlduVmtjSEdKUGlqck11bTdwUkJIYjA3dUJWT09LdzIrbnJCVDdnMjll?= =?iso-2022-jp?B?RW82bHBxSGtzczNwWFlCTTlHcTVkeVFUMXpycm8vblc3aS91MGtiREJw?= =?iso-2022-jp?B?cEl0cS8zNGc5U1NkUlhnNGZkMTgySk53bWI2YlRjYmdJSnBYcWErN0x6?= =?iso-2022-jp?B?VHVqUXpiMFFzZlBJRFA1YmdYM1RQZUxaYno2MExHU0dGL1pjVzlWcXhD?= =?iso-2022-jp?B?N1I0TXMyWGR1ckFXU3lhaFg4eklIN2MvWTkveFo1R3NnYU9EbWE1THpj?= =?iso-2022-jp?B?b2wvWGlBazdHd255QUlES25LWGVwa1JqT1kvYkNHWXFPc1MxUGdLRytF?= =?iso-2022-jp?B?ZDMyYXBpcFhnQytaaVI1TFlzR0Z6Rk9SeTRGUHh0ZzViT282b1laRFF6?= =?iso-2022-jp?B?UEhOSEJraVR5MU1HQnd3U2JPelVxUXhyWldzUVhGbTNaT2ZoUDRieFMz?= =?iso-2022-jp?B?UkJvVEZGbElIckZIMks2enBjQ2oyOXdxUldxK1B2WTNoN1JleUVLRmpz?= =?iso-2022-jp?B?bUI3VE5PU0pkRXYxL0l3cXdEdkVIaFlzUUNFU3NTUlZjbENjcGM5U1Vq?= =?iso-2022-jp?B?VFEzMkR3eG1QV3VGbGFMT2pGUFdVTnI5c05RMGpUQzVPek1Ybkg1U2Zp?= =?iso-2022-jp?B?OVJnc3M4NktjOXFTekNMQmtzRlBJTzIzUkJRR1hERU5WRFllSjZSVUJ3?= =?iso-2022-jp?B?dTZaSEhETUhPYkNRNU9iZXFlZUJETFJ3Mkl1YlVDT1dWRkhGZ2RLdGJU?= =?iso-2022-jp?B?Rlk2U2lFUlJLOGlDQjVGYXlFNmFOZ0ZuVkpYL2FtbTZRVHFsTmtQaGVF?= =?iso-2022-jp?B?a1Z4cTk4cHQzV2Y2MFFPZUw5SFlmSk1EQVdFd3RsanJNK2NnOE1sTGkw?= =?iso-2022-jp?B?bHN0dVFUdDN4b3BsL2xMdTE1clNIeWVGRHRxQ0tORFBZbmo3SW9NQnA5?= =?iso-2022-jp?B?bHM4cmI3aWd0VDNoMlA4ZTBONktuNFNrSkkwYjRWRFJERVdVeEZoSDZT?= =?iso-2022-jp?B?VzlwRVpKSVRxVTNPR3RvcHllMW1tOFdFNi9DR1A0SlJMcURSNVFiWnVC?= =?iso-2022-jp?B?VEszeHd1bmdLcWs4ZFFrYkdSNXZuKzN2V2pDY0RDbytmM1g3d0g4ZzZD?= =?iso-2022-jp?B?RTE3NFdKV3czM2lmZjBVVXl4S05nTk9IWDMyM2pkM1FjalVPbGdBTURD?= =?iso-2022-jp?B?elJHMytwUTZKUWhYR2x6SjV6NERGL0tHblVEUUpEL1BKK1AwaWdrNUxW?= =?iso-2022-jp?B?VGtHTFE0dlR4b0RZRzBvUkEzYW1WUFVzejd3a3JJMjFYbUtGRDhHUzFx?= =?iso-2022-jp?B?THJmZQ==?= 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: 87e25dc4-fdd6-4e83-d5a2-08dd94317c1a X-MS-Exchange-CrossTenant-originalarrivaltime: 16 May 2025 04:24:01.2618 (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: RJPOkSEdCadaMGL2fhdx+aFFIpCW9774bQ7WYvvTu/He9oqU9WitIuK+uyQD0jrKZtQ5aFOiA/zoKfDrelaGRQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM4PR11MB5262 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: Thu, 15 May 2025 21:24:46 -0700 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: 4N5eiaTdpD8LmhLjSTvIWzdJx7686176AA= Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_PH7PR11MB5943A234A7B29051A330B44FEE93APH7PR11MB5943namp_" X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20240830 header.b=dzaKPqnK; 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_PH7PR11MB5943A234A7B29051A330B44FEE93APH7PR11MB5943namp_ Content-Type: text/plain; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable That=1B$B!G=1B(Bs right I have also observed this, on Debug IFWI firmware i= t runs very slowly. It could be due to generation of lot of prints from the firmware as it is a= debug build. So, it is expected to be very slow. But on a release build of the firmware it works pretty quick and we don=1B$= B!G=1B(Bt notice the slowness as observed with the debug firmware. One option is to use the pre-compiled library files which are compiled to .= pyc files. So that Python interpreter boot strap process can run pretty fast. Regards, JP From: devel@edk2.groups.io On Behalf Of Yoshinoya vi= a groups.io Sent: Thursday, May 15, 2025 7:39 AM To: devel@edk2.groups.io; Jayaprakash, N Cc: Kinney, Michael D ; pedro.falcato@gmail.com Subject: Re: [edk2-devel] Python-3.6.8 UEFI : fork support Hi, JP I found an interesting test result. I ran shell python on qemu with debug version ovmf fd. I executed "python" command in shell environment, it ran slowly in the firs= t time. then i executed "quit(0" command in python interactive environ, and launche= d python again in shell environment. And it ran more slower than the first time. If i do the same test on quem with release version ovmf fd, and it's normal= . every time, i ran python in shell, and it ran quickly. I tried to run "python -v', and saved the output log, not find any obvious = exception. Is there any suggestion? best wishes, =1B$B:_=1B(B 2025-02-18 13:07:57=1B$B!$=1B(B"Yoshinoya" > =1B$B> wrote: 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=1B$B!G=1B(Bs 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=1B$B!G=1B(Bt 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 (#121346): https://edk2.groups.io/g/devel/message/121346 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_PH7PR11MB5943A234A7B29051A330B44FEE93APH7PR11MB5943namp_ Content-Type: text/html; charset="iso-2022-jp" Content-Transfer-Encoding: quoted-printable

That=1B$B!G=1B(Bs right I = have also observed this, on Debug IFWI firmware it runs very slowly.

It could be due to generat= ion of lot of prints from the firmware as it is a debug build.

So, it is expected to be v= ery slow.

 

But on a release build of = the firmware it works pretty quick and we don=1B$B!G=1B(Bt notice the slown= ess as observed with the debug firmware.

One option is to use the p= re-compiled library files which are compiled to .pyc files.

So that Python interpreter= boot strap process can run pretty fast.

 

Regards,=

JP

From: devel@edk2.groups.io <devel= @edk2.groups.io> On Behalf Of Yoshinoya via groups.io
Sent: Thursday, May 15, 2025 7:39 AM
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: [edk2-devel] Python-3.6.8 UEFI : fork support

 

Hi, JP

I found an interesting test result.=

I ran shell python on qemu with debug ve= rsion ovmf fd.

I executed "python" command in= shell environment, it ran slowly in the first time.

then i executed "quit(0" comma= nd in python interactive environ, and launched python again in shell enviro= nment.

And it ran more slower than the first ti= me.

 

If i do the same test on quem with relea= se version ovmf fd, and it's normal.

every time, i ran python in shell, and i= t ran quickly.

 

I tried to run "python -v', and sav= ed the output log, not find any obvious exception.

 

Is there any suggestion?

 

 

best wishes,

 

 

=1B$B:_=1B(B= 2025-02-18 13:07:57=1B$B!$=1B(B"Yoshinoya= " <yoshinoyatoko@163.com>= =1B$B

Hi, JP,

Thanks a lot!

 

best wishes,

 

 

 

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

Hi Yoshinoya,

 

The MP Services UEFI protoco= l has been used to run the CPUID instructions on a given CPU core and to read / write the MSRs from given CPU core.<= span style=3D"font-size:10.5pt;font-family:"Arial",sans-serif;col= or:black">

The python functions for thi= s purpose are supported from the edk2module built in extension module are respectively cpuid_ex, rdmsr_ex/  wrmsr_ex= with the function signatures as given below.

 

cupid_ex has the following s= ignature cpuid_ex(cp= u, 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 c= ode sample are not yet updated in the wiki. I can add more details at the earliest.

 

Please use the edk2-libc dis= cussions page for any further questions / discussions.

https://github.com/tianocore/edk2-libc/d= iscussions

 

Regards,=

JP

 

From: Yoshinoya <yoshinoyatoko@163.com>=
Sent: Monday, February 17, 2025 4:43 PM
To: devel@edk2.groups.io= ; Jayaprakash, N <n.jayapraka= sh@intel.com>
Cc: Kinney, Michael D <michael.d.kinney@intel.com>; 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 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=1B$B!G=1B(Bs not supporte= d 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= =1B$B!G=1B(Bt 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 (#121346) | =20 | Mute= This Topic | New Topic
Your Subscriptio= n | Contact Group Owner | Unsubscribe [rebecca@openfw.io]

_._,_._,_
--_000_PH7PR11MB5943A234A7B29051A330B44FEE93APH7PR11MB5943namp_--