From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by mx.groups.io with SMTP id smtpd.web11.8816.1661843545237431746 for ; Tue, 30 Aug 2022 00:12:25 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=G55YZTzV; spf=permerror, err=too many SPF records (domain: intel.com, ip: 192.55.52.88, 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=1661843545; x=1693379545; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=Lf9gp2YxuJzrVIS4QP7/BLGwT+v4noF1P0z0MaYV3iY=; b=G55YZTzVbgZrBvL3LGu8LAlRVsnZHwhONlbwdNszT6WV1PF315UNfyhU z8H8OonvqSXWgz+QimdMQsZ7D/t3ALFM34UpElFOmaNQy/Qlr0in9Q4JK yjYejGKGhN7HtyYGv2pDFe0rgdwlv9SDnbz4z3fyLyTE18Gb8PmEaC823 PcOlhb8tmYlLlsMQFJnVwDR6huxwsSh5hic8NiDBoIPgSFEaxJP7N5X/R BODFKz6VIydegmhMAUmye4zn6zFSqvzr38OZIMMvSwx8FDwSQwLwGnquz pX56zYN2AO9WFbnTFtjUBYbV73yuWMiKVogwv2dUrniMAtE5v+Rr32TNN w==; X-IronPort-AV: E=McAfee;i="6500,9779,10454"; a="321230140" X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="321230140" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 30 Aug 2022 00:12:24 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.93,274,1654585200"; d="scan'208";a="614514626" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by fmsmga007.fm.intel.com with ESMTP; 30 Aug 2022 00:12:24 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX602.amr.corp.intel.com (10.22.229.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 30 Aug 2022 00:12:24 -0700 Received: from orsmsx607.amr.corp.intel.com (10.22.229.20) by ORSMSX607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31; Tue, 30 Aug 2022 00:12:23 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) by orsmsx607.amr.corp.intel.com (10.22.229.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.31 via Frontend Transport; Tue, 30 Aug 2022 00:12:23 -0700 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.107) 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.2375.31; Tue, 30 Aug 2022 00:12:23 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KyLbdsy8zT1xMIUum9uKkRO+NXeeVmOFQKdXHFM8ejk/8OexwLeYjQlyGJmcF+rOhssVGdFAh0TIRoayU9ZOJDrAI6z1ImwzXOQAAvUwRMpaJ2U9ccmxPgYlt+FJkvrxi0CqjSD4DESZSnbs4dO13Dz8+YWdXGs1NqOjm457fmHHmVoNMpIW+6vgVmAxTRuy8qM4ZQZ3Bb+Notc6jKK7dIBYCpqwDq+rLmMqrZEFeR/yaFaukmDHMwfP+ATNqTjodLymOGlnT2S9+O9Cdc3C0olM/8DUzlxv8LyQ9XcRg7g38NhBADaO9t5edpzwfJLIu37mnGKU5VYB9e7/vxy3bA== 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=Lf9gp2YxuJzrVIS4QP7/BLGwT+v4noF1P0z0MaYV3iY=; b=eusCaVQV+DLQgFgXuovW+oa9GyhWLBisFjPRhbqvFcJD+INzjh0J+wjoYTcUKRO9ZUedqhbf3ATGHsmyeoboi7r+3es074yJ4E/0s5fwCXngMoYXGLDGLZtimP4XyUBKWDykvI90Wa4HbN/8GRXzlDDgEBb222hHVGA4xsJ1RM6XZuYubL4inA4RQdHSAxSWhtdc85B5pyyLVlZwLcOIBe0d+lK3F/wxYPaC04PgB65be2Lv3ZmLrrMoNk1zcR+XCRMEXFObAU68zP3Tnq7zqkcdYNLmitWl7jd5FHOSewvzFofTn8Qo+x0CH4Ttch/FlPqBKBG9LviBVaEwb8KE9w== 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 DS7PR11MB6295.namprd11.prod.outlook.com (2603:10b6:8:95::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5566.21; Tue, 30 Aug 2022 07:12:16 +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.021; Tue, 30 Aug 2022 07:12:16 +0000 From: "Ni, Ray" To: "Xu, Min M" , "devel@edk2.groups.io" , "thomas.lendacky@amd.com" CC: "Gao, Jiaqi" , "Wang, Jian J" , "Gao, Liming" , "Bi, Dandan" , "Aktas, Erdem" , "James Bottomley" , "Yao, Jiewen" , "Gerd Hoffmann" Subject: Re: [edk2-devel] [PATCH V2 14/14] MdeModulePkg: Pool and page functions accept memory when OOM occurs Thread-Topic: [edk2-devel] [PATCH V2 14/14] MdeModulePkg: Pool and page functions accept memory when OOM occurs Thread-Index: AQHYud2FqcgPOaqqpUizN4vooJ0CU63GXU2AgAA9uMCAAFz/AIAAAvLggAAGroCAAAmNcA== Date: Tue, 30 Aug 2022 07:12:16 +0000 Message-ID: References: <0df27647-88c0-2b21-cfea-3f5536451567@amd.com> In-Reply-To: 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: 6dd29823-1591-499e-eba6-08da8a56f84b x-ms-traffictypediagnostic: DS7PR11MB6295:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: l0RoIhsSkbHMaM1d7ab+K/2pZXWOMSLy3S+O+2uLYx+PtYnwVj890KmqhreiE9bAm9pPMJsW1F9fkEGGtQpqsXxKbn+KhVtoYdibAMWzW/4mml3qoCPFf1J25mfDLtZOPsWbSZ9cqulVIYg6AEcaidQowtGi6l9ce5Nvy20o3Yj/s1j7KfCE5g8euZJhb25gW5lX+9mw2Fmm67Jo7yhDWS48TaN6DED1ReGGpJWvEPY3E29kae7OB8I2UZ6YkCbTLXoPHVCbYJ8lLJ5Dr5nvfTEQbpA7lag7kvyG5WGHTxDan2HkO/Bq/7syQzqaSCsZqUeQR/ra7F1iOxuLjetsAYOhWBRv0jYxoI20CM+pqQhHSIYnFq83892bUkFgdf480mo/cL7H8c08weUkndjuvuWM7rdP9iNhQpWgxlH6nVjl/APY/o8o+Oqid/5sE9ZJwIgzhjzQvT8v8A0wER9/Q8cojkTZX1CG/y6xlqUbtUoVXaeDx5w7/UK1oKWHOsrNz+aw+NwJVSkvgEpGRpMHngsGYyg+KRtmCYY99JlOIZ02WPuelzksJXrLMS+3gd6kA8MizY2i8XFdU13Gq+Kl0UfY3iCryeEJRc2YQFRgVQBHUWHqRd/bEAjiXOzU8WPLs4OSgDINcE36OlK3UQEE0/isu2hdKk6isYIsa/frgk/hkgxCXR/xK466NanB6/viWx6Gqq5kzjn8b9hiEa1YMDB+MK9Pj0fE833uD2R12+exU7JmrMfFP2JezgCb2NCuo4kNCbZ2wTXLmPc8xx147Q== 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)(396003)(376002)(39860400002)(346002)(366004)(136003)(53546011)(9686003)(86362001)(71200400001)(478600001)(82960400001)(7696005)(6506007)(41300700001)(55016003)(186003)(26005)(122000001)(38100700002)(38070700005)(83380400001)(64756008)(66476007)(66946007)(66446008)(66556008)(110136005)(76116006)(5660300002)(8676002)(8936002)(52536014)(4326008)(316002)(54906003)(2906002)(33656002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?SUdZNzhreGpJV05pQ1hYRi9xWFkrWWJkNCtYajA0dUNWeTZXT216YzhmYWpz?= =?utf-8?B?OCt0dWpDTFg4RHFSZFUzWU5WVmExMllvL0thclovaHdjcE9zYUs3dG1BZFAv?= =?utf-8?B?RUQzZFhvaWNCa0Ixa1dmNk00VEQ0RmVjQjJvbEFCelJPWHNDb01GMDZQaTRZ?= =?utf-8?B?amhkRy9iNHBuT3ZrVzloWExiY2RpZ2J6UDdleVZUbERVZlg1MEVxMU1TNVp1?= =?utf-8?B?WG5obE1aR05DUCs0dnN2ejFHRThXeEIxSlpCRlFNWjV0bWNGTmN6cVVZUlBB?= =?utf-8?B?MTJKN2VielExQUdWR01pNzRTQW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: 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: 6dd29823-1591-499e-eba6-08da8a56f84b X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Aug 2022 07:12:16.3267 (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: +1rJeDYL1IuVnonW2QnTI84R7ajAq8U1zoIFgGTOEI/nvS8UeSnTnK6hL4u2O/V4FYdQ0vqbPtttWvlDeIzn7Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR11MB6295 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 SSBzYXcgdGhlIGp1c3RpZmljYXRpb24gb2YgdGhpcyBpcyB0byBzdXBwb3J0IGRpZmZlcmVudCBz aXplIG9mIExpbnV4IGtlcm5lbCBpbWFnZXMuDQpCdXQgdGhhdCdzIGFmdGVyIFREIERYRSBkcml2 ZXIuDQpGb3IgY29kZSBydW5uaW5nIGJlZm9yZSBURCBEWEUgZHJpdmVyLCB0aGUgbWVtb3J5IG5l ZWRzIGlzIHByZWRpY2FibGUsIHJpZ2h0Pw0KDQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0t DQo+IEZyb206IFh1LCBNaW4gTSA8bWluLm0ueHVAaW50ZWwuY29tPg0KPiBTZW50OiBUdWVzZGF5 LCBBdWd1c3QgMzAsIDIwMjIgMjozNSBQTQ0KPiBUbzogTmksIFJheSA8cmF5Lm5pQGludGVsLmNv bT47IGRldmVsQGVkazIuZ3JvdXBzLmlvOw0KPiB0aG9tYXMubGVuZGFja3lAYW1kLmNvbQ0KPiBD YzogR2F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