From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web10.34414.1661499473853735712 for ; Fri, 26 Aug 2022 00:37:54 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=HAZnzQT6; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: ray.ni@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1661499473; x=1693035473; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=7zsS4OQNSMzCI+RkncOCEhi7iPBMByfb0l0F3Q+riPY=; b=HAZnzQT6B6+b+HztV76ZPyu58HX06W/lmi4vHnQPbJ9i6SMhAfp04Or/ wcxH0ICwjJDRT4Cx9kdY0E4hXinvyVfpghDtsfQTPcGdgokdH3R2LmzhR ZIIi7Tl31nhCSkiW5hLKOG4sl8HiIVXt2NcKpePhHsaiCSSWmA9Hd2eTF sMiIsNBXPWiAko/bw8qKYszLhkG5KPnyvlCWXR4gJxoJMjuZFfjRsYhWh 6NmMl3jB0WmAaZd8wWWuon6PhNh/AR0lqiTJ9WICLNe++hqBT/SQrCB4I vAnK1XNOqhHT02wpEsN/Kc7g7o/bsuw1/XRJfRwvtzrKbfzCMh5K0UQky g==; X-IronPort-AV: E=McAfee;i="6500,9779,10450"; a="294451499" X-IronPort-AV: E=Sophos;i="5.93,264,1654585200"; d="scan'208";a="294451499" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Aug 2022 00:37:53 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,264,1654585200"; d="scan'208";a="699759730" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by FMSMGA003.fm.intel.com with ESMTP; 26 Aug 2022 00:37:53 -0700 Received: from fmsmsx603.amr.corp.intel.com (10.18.126.83) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Fri, 26 Aug 2022 00:37:52 -0700 Received: from fmsedg601.ED.cps.intel.com (10.1.192.135) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Fri, 26 Aug 2022 00:37:52 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.172) by edgegateway.intel.com (192.55.55.70) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2375.31; Fri, 26 Aug 2022 00:37:51 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=eT0fecTva+Mr5AdBd/RZ6D90UNQw/VIU5eSlezJPpvtcXGVkz4dfWIs1QziZg3REHO+J4ZQZItN9bakgqcA30KJUpwXTBkWs0hNJ86fb5WU4y1YA5ebduyGncj22E+DebzEAH6BwjJyY9tl8xsGTJeHUgZYRyki58nyW8EVnd+YJFE0BtdyyaCKcKDQGATzjVstvyNvfonQk9MD3679nMo0fGCcxTFbQLeYG5PKbmfl/AXnjKNZLoR3P4MLKU9zLKvOaGlTsP3JixnVeUQgeywT1oSgT6JpiUDK+78YzPQJ0b5YSeNR44NFStkj7E6jju/qrvND0rsdUkMkSN3O1NA== 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=3ZQuljsKvSkzje+kLtB5P3qr7v38J+piLnmdpJc7snI=; b=mipfYT2wB6X/bFWcDoiRzEN2i+zDDgb4IdgU4bl/um8MD4L06Lv000IAlVPEHDC//L39ZB6vRvZhYSuHAvpb0tH2RAkMMjVdxAEsQ75vaYbTfVmYw8Q1FxLlrxfWKebbcECiIQPnLcrxXn52d6S28Cibc1Nn2ezzVybaJNpRAoLLHAAwZuU0aFQBoz+0pkjSCHU/yrM2vU3vzFa475fy5KCfCEvlhAe2DgCtvGZIqXpoqRy4+/yI9cAgUMBK4gbQhid9gfMNyHNTBrzSof11geDJpsRVNKEf49H4JgRKtQ+wD1rI7dlGQRZPNJ8Nv/iHNy//26CyiJkWAJ+WmX/AUQ== 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 Received: from MWHPR11MB1631.namprd11.prod.outlook.com (2603:10b6:301:10::10) by BN6PR1101MB2211.namprd11.prod.outlook.com (2603:10b6:405:51::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.15; Fri, 26 Aug 2022 07:37:49 +0000 Received: from MWHPR11MB1631.namprd11.prod.outlook.com ([fe80::958b:cc9d:ac3:288a]) by MWHPR11MB1631.namprd11.prod.outlook.com ([fe80::958b:cc9d:ac3:288a%10]) with mapi id 15.20.5566.015; Fri, 26 Aug 2022 07:37:49 +0000 From: "Ni, Ray" To: "Liu, Zhiguang" , "devel@edk2.groups.io" CC: "Dong, Eric" , "Kumar, Rahul R" Subject: Re: [PATCH v3] UefiCpuPkg: Enhance logic in InitializeMpExceptionStackSwitchHandlers Thread-Topic: [PATCH v3] UefiCpuPkg: Enhance logic in InitializeMpExceptionStackSwitchHandlers Thread-Index: AQHYuR39b7/x6gELpUi2CLGz3W5Fm63AysRA Date: Fri, 26 Aug 2022 07:37:49 +0000 Message-ID: References: <20220826073203.2573-1-zhiguang.liu@intel.com> In-Reply-To: <20220826073203.2573-1-zhiguang.liu@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=intel.com; x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 81bd79f0-d6b6-4492-7f51-08da8735e054 x-ms-traffictypediagnostic: BN6PR1101MB2211:EE_ x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: npo+QFpmHbgrO/G2WBM/aDgniUA4qorh6uhz6PuoE/YXRyDc3wS53bOL6+I5MQ+zJxY0N0eZE8i5cKOWLxQ/i5iLSTkRXV6vVMeV7nytO2xHH/x1kw602VI3WmDQX0z49EgmA9uO+bSQ9IEbV7DM7u6KC1NYyG2LVBZtwvqtoKRDrG6Bu2zkVVRhRSg+hBG0lQBrDjG/FHyLo9vzW/p2aIXB4bGf+uVTbxr+yfXXDR621tInTy3qajj67GmpE26dmYNMSyxgnn4xZQ4Jj23CSj3QQ4gMqBKi2kEmKsQPm0erV6/iAgw9ysgz2IX7BJkPwK4xGxrDeu4OJY8eVKTj3OKyyFxQLz6adbNPt+Sun/mKIjD2/lWXfTtOXBAX86ykb9sRq9x7HxJMIubEIlmwD01HuCcyHxW2F4IlHjEDYztj1xducnjURdxN9y0Jq7jRE2Req6Ry/RXMamLylnuLxl28xNY1ZVMl8AHCs7aqWJ5d0WkqjsV1Vk2RgPt5JAx9ZpEd6I9CcaTDb/NRwjzY0lS5YN3PpWml11tzs215ZQbvV4MhCAizIUTv056cSF/xCrW/tAq6FW8WaLbZneqc89W3+pdAdCxQtk5jNZ5wIk4mFvx3BorQOG3YJjQrO7wkX8z6CMyGAEjxAlLKpp+D7ao6FhpnlVeT6oXZek3Kz32KKolpjkLj0jNv7qftaozP5O6lCoDhpUioN2sfCIgy3sQoNAIFxtVTb0H2UANoSssTbw+PagEqqGP0Czxi1yTity/DKItzJOj19ZGU/Atc4Q== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MWHPR11MB1631.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230016)(6029001)(39860400002)(396003)(366004)(346002)(376002)(136003)(478600001)(7696005)(6506007)(122000001)(186003)(71200400001)(5660300002)(33656002)(38100700002)(2906002)(107886003)(41300700001)(558084003)(8936002)(52536014)(4326008)(76116006)(110136005)(86362001)(55016003)(9686003)(66946007)(26005)(64756008)(316002)(66476007)(8676002)(66446008)(66556008)(54906003)(82960400001)(38070700005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?jVSAFWVJukChUFRMYVHCxtAakIO1OBKHJAcNFERNZbSHZjckmzzpipyWnzsu?= =?us-ascii?Q?iBlkwKi2Oj7Jzll8dM128awn6lLUFRQCAhj5WMD4XzgvJfB2gmZupM1TxHyJ?= =?us-ascii?Q?4leS6DExGO8tT6LC3W9B/ntbGuDijhqpzMA8CJBYW8hkEH+t3C43wv/D7Eaa?= =?us-ascii?Q?zBGKVYDjMCuRHm9SpmSvsBBculfh1BVe6TiKMv88bJknvPxh7nGRrV/39MFx?= =?us-ascii?Q?J89eS5eninAMUmNRgUlAB27roQ7X1S0aWM9tTphr6qbjbH+f70ZMS/jMntX3?= =?us-ascii?Q?yNruIO3BF2QH9a5qNDGLM0gtiPGpdLP8pEyjhPlLJuaq51nWy6w0JGwCjzOZ?= =?us-ascii?Q?/R62DCcaArpPmYr4uH2JrMp/cnbqQfOgLstIto9UbuGgnXO02EMyFAibltEl?= =?us-ascii?Q?oZa0qbsFeMbOgjesqV05h30G6hvnLeCVRcrpkU0BZPtgXBB0K4VddcDcEtrA?= =?us-ascii?Q?lDEBVg8EFayNHdvvzKCSyES1qVdZivdvLVO5lxqigYdP/7iLoQfg4V5FcOsp?= =?us-ascii?Q?8SC6/3FVygz7Lo+6kEf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?= =?us-ascii?Q?BhPxcZkD/dSfWkfPbuO7KXUaW7h/+QDmYMyhXCDfCHCDA5JLpE944j4w1G/9?= =?us-ascii?Q?F9EyyjGSjHUfhka+dX3Q9ZgIG26IgaJ7AjKgnr5hUI0x6o33LpRBu+qmzNcW?= =?us-ascii?Q?5DpGQYq79OZXfP9emHw2NgIic0rTEIz5H/JEoeUX?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MWHPR11MB1631.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 81bd79f0-d6b6-4492-7f51-08da8735e054 X-MS-Exchange-CrossTenant-originalarrivaltime: 26 Aug 2022 07:37:49.2528 (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: tbiqfn0hU85jPsEzKaFMmsjXV7nhBBpvzIlf1nlxQhC+OsBRKSVIIJ6JQYHVMiGiwu9/CpGevbap5BEhE3Js3A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR1101MB2211 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable > + FreeAlignedPages (SwitchStackData, EFI_SIZE_TO_PAGES > (NumberOfProcessors * sizeof (EXCEPTION_STACK_SWITCH_CONTEXT))); Please just use FreePages().