From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 169BD7803DA for ; Mon, 19 Feb 2024 07:12:38 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=GH3SjX/ph50ynyt7WESDrIR1WqBLLZniTbafYazb8OU=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results: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:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1708326757; v=1; b=GU5gdZX0ub+KaMRR0Mt8bA7C530zyX8yXkUKJXMNwAEVhq9+v0KqI3rBPA5+aoHhv1Vw+AjN mbiECKN0ZFLYZ4AQ/gm685WmBzhC7o949atYf8e9BJ+TI3LJqXPr0I1p/8NK8G0Xj19IGPNW6Wx VTarS/B/EauCdqnpdHAZ/gII= X-Received: by 127.0.0.2 with SMTP id bFHcYY7687511xNdLsy3OxX5; Sun, 18 Feb 2024 23:12:37 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.13]) by mx.groups.io with SMTP id smtpd.web11.36581.1708326757000260180 for ; Sun, 18 Feb 2024 23:12:37 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10988"; a="13500154" X-IronPort-AV: E=Sophos;i="6.06,170,1705392000"; d="scan'208";a="13500154" X-Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by orvoesa105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Feb 2024 23:12:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,170,1705392000"; d="scan'208";a="4556064" X-Received: from orsmsx603.amr.corp.intel.com ([10.22.229.16]) by fmviesa008.fm.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 18 Feb 2024 23:12:33 -0800 X-Received: from orsmsx610.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.35; Sun, 18 Feb 2024 23:12:32 -0800 X-Received: from ORSEDG601.ED.cps.intel.com (10.7.248.6) by orsmsx610.amr.corp.intel.com (10.22.229.23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35 via Frontend Transport; Sun, 18 Feb 2024 23:12:32 -0800 X-Received: from NAM02-SN1-obe.outbound.protection.outlook.com (104.47.57.41) by edgegateway.intel.com (134.134.137.102) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Sun, 18 Feb 2024 23:12:32 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k0Y9oJ6FhA7+Zk8HYcH8lWuL+XwQ6PnEmnV2WVvK5iKMTeK8F8KrPa7dzgZObA+kxsa2fZh4fZFlFUX6PuN6N1HjG+OZ8OzoPV5a2MRzH33z0k69lGH0a/lI9+XxcxpXxJudGpEy/wjPAOh/NFuZNs9JQWiNTdfXFZP1yMk2PkMexUTwmOFo11SkJTCLNI6jeu8sx39W+Vm1c43OVppdEWHbnT/UEKg5uoYi9aPOMdRGhQMJ2JL/bMIC2ziGCJs8BqNMbZe7qK93oWkv3zxlrLncccqkp+K9quCiKjBkoTjgyTl6QTxItmOe9SRxic1QywRM64rKhgkHtz/UN5tdDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=UZBv3EUsqy8EM9yWADQTAbGAvvmZ7F7YOYyJYnbrJKg=; b=NAKdmf2SenGV7KQDFg9T34ApDA6BfG875azbF9o/19RBVriHt8K/K+j4iSmz2/uhZxIHwVmISrCBtp17XoBEZzHqPz4H6ZWKjKbQ2NwNOkeZVqH2NV298xmMw2hXSSx5XDFWslWPihFQILVJBYuOV8sCYWeyNnztgO4EpR3jLmvWboHw8ZIPdLHWK6Zm8g7g2B25bVKRsZrsYrjIu9DsWhCNn2YoeqJmbEC7EsPN61x+p+GzrwZv5wgo/MaLrH4jr+mEG+DTC42Qcsz82ucRFTPo1qHOHVyUrYQ6dj+ihXIj6nZKUySS82DOi0vuH8oSAvvVbOBRfTJB4JBw1UbV6Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none X-Received: from MN6PR11MB8244.namprd11.prod.outlook.com (2603:10b6:208:470::14) by DS0PR11MB7262.namprd11.prod.outlook.com (2603:10b6:8:13c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.31; Mon, 19 Feb 2024 07:12:30 +0000 X-Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::8985:d1bc:9df6:61cf]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::8985:d1bc:9df6:61cf%7]) with mapi id 15.20.7292.036; Mon, 19 Feb 2024 07:12:30 +0000 From: "Ni, Ray" To: "devel@edk2.groups.io" , "lersek@redhat.com" , "Wu, Jiaxin" CC: "Dong, Eric" , "Zeng, Star" , Gerd Hoffmann , "Kumar, Rahul R" Subject: Re: [edk2-devel] [PATCH v1 2/2] UefiCpuPkg/PiSmmCpuDxeSmm: Check BspIndex first before lock cmpxchg Thread-Topic: [edk2-devel] [PATCH v1 2/2] UefiCpuPkg/PiSmmCpuDxeSmm: Check BspIndex first before lock cmpxchg Thread-Index: AQHaVQCo/YpighLpLUeKtA4iDDSQy7D23YWAgBp8ZjA= Date: Mon, 19 Feb 2024 07:12:30 +0000 Message-ID: References: <20240201112001.14416-1-jiaxin.wu@intel.com> <20240201112001.14416-3-jiaxin.wu@intel.com> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN6PR11MB8244:EE_|DS0PR11MB7262:EE_ x-ms-office365-filtering-correlation-id: 1c75d2b7-21f9-4192-0962-08dc311a2307 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: U8FC4nt1O+ctdCf2ho/Um+Y4JpYbr85SwJVWRhOTSXvh3Z7xhMjad+pY1Xv41X6a+IhoZWcSxlTH30tOTs8QIdOcjhP6gModxGGYUQUn1wjdkWw7gKOn1eeG+bws3Z4jCvKF2LLXpssGzI76LbIuf/1b9soghOJSvqFMioCfY63F8ZXfGX1mQwB7uLLH2eeq5MbqgPI5boLAx0yHlX18gG/IdtJ0/7A6vvnKpTX7Io5SftvaMOywTQyleagk0/amHvo57hxFe+dOodK2RCAZ3uZq+VuUBI9eRr2pv0UmtU+zC3FtcUL+buCDutd8EOm9oQ6diUHZEs/kjOTk4wRu3XHlximK0X1LTSmcDUtz+9V96/SA2IKAEOT6yKcm8QFY8iE+N4sgyHE7kydmMbnfbnBKyfP7bkTLkDDJtiBPqQNCJs94zmh7K54Z0L4wLRsstTM6+11JR6C1DycmuqHpnjmB3w6LliM4cBrqr2NKku4+mMq2W3PxjVXev64w3L3SdplBr8/IpIOV+1DeYC3MGPf5YiBafq8MpYQskrAmxhkl/e/c6EYzvLYEOF+ht2zwUcuLzEUKAMwyRzI+op/Ryvr1YpEk5n8kVrH0qAo54OvNuQkP/PPBh3TOzbqQORuC x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf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IMzAxVW1mNjVRcS9La3RKTDBCUVlxSEda?= =?utf-8?B?RWk2NElvQWEydUNFS0l5VzE1bjJCV2ZxQVk3a0VPMTBoNDI4elF4bkkyNW92?= =?utf-8?B?YnRJeVRyV28zQkNWKys3Ky9paG8yWGRIWVlCN3ZsK2orY2NOZHlGOGdLbnBX?= =?utf-8?B?MjJ0bFZ6RE1SL0hQbFlTSm9TdHdtVnludU9lMVdORE84c3NJUFJtUHp2dFdL?= =?utf-8?B?SGUrSUxiOVBmdEJkZU1xZDVYd3U5ZnlOUmVGS0x2UlB1OVFoNGRRNmxzeVk5?= =?utf-8?B?bnJ5elRHZy9oMG41eXlQbHFWa2RSZENVMFpxTzhOMlpFaHB3YmpUamJMWjJy?= =?utf-8?Q?jaI4=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN6PR11MB8244.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1c75d2b7-21f9-4192-0962-08dc311a2307 X-MS-Exchange-CrossTenant-originalarrivaltime: 19 Feb 2024 07:12:30.5964 (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: xtBC1Mnt96f39Jyr2x4Y5ZavrwU5Xh0P7WJTIci7YeUTYxfGnpNquTVV5VxALm3nxV1DwCuhzuFdI+XU3bFsHw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR11MB7262 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 Reply-To: devel@edk2.groups.io,ray.ni@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: FOqJEW2JasrckTNKM6ul7R95x7686176AA= Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=GU5gdZX0; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io PiBUaGlzIHBhdGNoIG1ha2VzIG1lIHVuY29tZm9ydGFibGUuIEkgdW5kZXJzdGFuZCB3aGF0IGl0 IGludGVuZHMgdG8gZG8sDQo+IGFuZCB0aGUgaW50ZW50IGlzIG5vdCB3cm9uZywgYnV0IHdlJ3Jl IGFnYWluIHRyZWF0aW5nICJ2b2xhdGlsZSBVSU5UMzIiDQo+IGFzIGF0b21pYywgYW5kIG5vbi1y ZW9yZGVyYWJsZSBhZ2FpbnN0IHRoZQ0KPiBJbnRlcmxvY2tlZENvbXBhcmVFeGNoYW5nZTMyKCku IFRoaXMga2luZCBvZiAib3B0aW1pemF0aW9uIiBpcyB3aGF0DQo+IHBlb3BsZSB3cml0ZSBjYXV0 aW9uYXJ5IHRhbGVzIGFib3V0LCBsYXRlci4gSXQgd291bGQgYmUgbmljZSB0byBzZWUgYQ0KPiBz ZW1pLWZvcm1hbCAqcHJvb2YqIHRoYXQgdGhpcyBjYW5ub3QgYmFja2ZpcmUuDQoNCkxhc3psbywN ClRoYW5rcyBmb3IgdGhlIHF1ZXN0aW9ucy4gSSB3YXMgT09PIGluIHRoZSBwYXN0IDEwIGRheXMg Zm9yIENoaW5lc2UgTmV3IFllYXIuDQoNCkZyb20gQ2hhcHRlciA5ICJNdWx0aXBsZS1Qcm9jZXNz b3IgTWFuYWdlbWVudCIsDQpzZWN0aW9uIDkuMi4yICJNZW1vcnkgT3JkZXJpbmcgaW4gUDYgYW5k IE1vcmU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