From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (NAM11-CO1-obe.outbound.protection.outlook.com [40.92.18.31]) by mx.groups.io with SMTP id smtpd.web08.128.1612304186123570845 for ; Tue, 02 Feb 2021 14:16:26 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="body hash did not verify" header.i=@outlook.com header.s=selector1 header.b=GJ3YpWtd; spf=pass (domain: outlook.com, ip: 40.92.18.31, mailfrom: kun.q@outlook.com) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dpQrNpcL4ijxAzhIl2ngIqToSrp0hR81Qbewm4Yu6WZ+m1fgMOde/txlmBGnFn2Jzo6vuN5jsQOE29CwIh5KC3hwH79bTU0Buyr58Tx3E9+QVxUF5DIzpH7Sbkzha7g8xPSD4dohjv0m5CX8t3W3WAne0HDY56Q6x1pQ2pEo7jteZfwcdoFbz+X37n4Iru6iBo2CSm0F1Qij47XhUvUZ0G6jfo2cTcWjuPNmMLmu+oWDzsbpgaTnDGTQLolvwGQrw0cSSAVNR+t1sG6rxDYOH1ap0i6+OMqOZVXpIm4iUDmtyjJgaGW4EKK0wbPm/kutlsI4GDCSwPqAGplDsg1aBg== 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-SenderADCheck; bh=ElTv/eC2IGVyMnIEnbUFHJKrllpFoiZCP6G3zayoXnQ=; b=ETREzzqtX0gXflhBSEk681vcORfgGUIz9u0HP++BTBcdu8Sd6qEfNrSHiCyA3qLP1ZEPajzjXSBY9TDuRZvAf7otQuhapb3Wjb63wP+gugMnpSiVcbqN7ZZZ6m1GS5uniDibQwpI4vEeA4ZdH8Xwif026+xmcOVYxlJhvJ8y3JiCjT1MjomPXnrrfvoKKOUpKzYWplr21NQQ0cbWnSRCjdk8KRqxp9CCDgOHzTELoMuGJ5NMkC7mNkhqFIhbiimJA+9DXonrfz27wAwn2sntbJnB6/SmFm3rubfmvdd0EhfH/pBAsZbe8OFYRLSkQTn78kgDDOSnfTxruG09yaRMnw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outlook.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ElTv/eC2IGVyMnIEnbUFHJKrllpFoiZCP6G3zayoXnQ=; b=GJ3YpWtd0CeNsB47jL4RjJDkGCgO7I/S+4JP7XglYlNujybKEExUrzFSeP+1erf6Sy8AD3bN4epVFDBnHYtmA+70nYOH2vbrzPHj8MtNTsFAQ2tDl6pb1/urFJLEr9YJj5i4i+Ml7E/19arw76BROidQuGsPjCl7/Qo2PK1n0DMZIzpya3+nfew2zTW8ZgztYg5cdW03v5iC53BjPt/MwMoSJaZ2+LjyHhYk5ny2R8wSSNE4rXZ+DoeD2ApWQ6WOyFO4Z2sE8G+eB3wtPW+uueBy6zD9X4Kd+5DmIWmL7ergfNAOsmCWJzI/6j273kNBcwCrpaQyu48CmGUbPOLdXQ== Received: from DM6NAM11FT052.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::47) by DM6NAM11HT208.eop-nam11.prod.protection.outlook.com (2a01:111:e400:fc4d::460) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.12; Tue, 2 Feb 2021 22:16:24 +0000 Received: from MWHPR06MB3102.namprd06.prod.outlook.com (2a01:111:e400:fc4d::52) by DM6NAM11FT052.mail.protection.outlook.com (2a01:111:e400:fc4d::111) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3784.12 via Frontend Transport; Tue, 2 Feb 2021 22:16:24 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:0BA3C7A996B5E4EB6A05FE07BE6B287BC8348CB83108CA42A959E37CC87CECB3;UpperCasedChecksum:B99D78361D912CF8F4A9766584095BD020F2B37B1F1CE112DC3F06D5A9E9944B;SizeAsReceived:7398;Count:45 Received: from MWHPR06MB3102.namprd06.prod.outlook.com ([fe80::d4ee:1260:6f53:3f7b]) by MWHPR06MB3102.namprd06.prod.outlook.com ([fe80::d4ee:1260:6f53:3f7b%6]) with mapi id 15.20.3784.024; Tue, 2 Feb 2021 22:16:23 +0000 From: "Kun Qin" To: devel@edk2.groups.io CC: Jian J Wang , Hao A Wu , Eric Dong , Ray Ni , Jiewen Yao Subject: [PATCH v1 0/1] Introduce DxeMmUnblockMemoryLib Interface Date: Tue, 2 Feb 2021 14:16:06 -0800 Message-ID: X-Mailer: git-send-email 2.30.0.windows.1 X-TMN: [+0Nr+VxplAGOzqvTtN+E2+ZyPjxw15Q/] X-ClientProxiedBy: MWHPR22CA0024.namprd22.prod.outlook.com (2603:10b6:300:ef::34) To MWHPR06MB3102.namprd06.prod.outlook.com (2603:10b6:301:3e::35) Return-Path: kun.q@outlook.com X-Microsoft-Original-Message-ID: <20210202221607.1942-1-kun.q@outlook.com> MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from localhost.localdomain (50.35.88.161) by MWHPR22CA0024.namprd22.prod.outlook.com (2603:10b6:300:ef::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.17 via Frontend Transport; Tue, 2 Feb 2021 22:16:22 +0000 X-MS-PublicTrafficType: Email X-IncomingHeaderCount: 45 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-Correlation-Id: 9721feb0-90b2-4c68-91dd-08d8c7c82c7f X-MS-TrafficTypeDiagnostic: DM6NAM11HT208: X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: LpBLh40uxox/SmME69kU+mMWJcDJXNfWAgWQGqlTsRFph7QzWKeojnw6tFhsitDNvPTmgNiD8szVuT58bBYSkT3JnlYGriE84jNgytBb/Zg6F3wjsPxcupSN+coshXOMHqqrRFNO+AqUs4Qe0kQ0DJDQdyTsw4D5p+fIbqEzcIjE18y4vuE9KDMAzPmR/GleXT3ZUBb/flxWeMguJ2CF0HJq4LZQI/FjmnBO25q6OycfpUYeJQy32GaDptnEd8ROVsguR+48rePCEQkCR5eB/WS+KoK6mkiXF8gxCzv2fPrR6GyZfrj1i3goy/s40HiLpiGsQHr8cfS0gJkONq2ecPzreuRjMZLsxmnP0zsjkMEt77+YDbrDJfziFrdpmE40aMGz6vl18vM4zIWO3T2K6ZYslnptq6g9jHsjWhF9j7itbQUCjuLByriJfmqsyMuJ X-MS-Exchange-AntiSpam-MessageData: t/6f1s9nIfIgIvCp5stBm2mHCp6aAoPaeenP8QyfFmsm7YIEm4yOeORtPDp1mtOHLhQkyrhpM9hQYxJ9CBwqYDXke/no0HqX080+qKvsJ6CzIaqQbrPlRhkVGMUgYSeGquYe/TjAeYahszufRlyr2w== X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9721feb0-90b2-4c68-91dd-08d8c7c82c7f X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Feb 2021 22:16:23.5784 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-AuthSource: DM6NAM11FT052.eop-nam11.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6NAM11HT208 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain The interface proposed in this patch series intends to provide an abstraction layer for DXE drivers to request certain memory regions to be accessible from inside MM environment that applies total memory blockage. This abstraction could pave way for models such as Standalone MM to manage memory resources without having knowledge of DXE memory map inside MM environment. Example usages of it can be NVS region in Tcg2Smm and runtime variable cache regions in VariableSmmRuntimeDxe. Patch v1 branch: https://github.com/kuqin12/edk2/tree/unblock_mem_v1 Cc: Jian J Wang Cc: Hao A Wu Cc: Eric Dong Cc: Ray Ni Cc: Jiewen Yao Kun Qin (1): MdeModulePkg: DxeMmUnblockMemoryLib: Added definition and null instance MdeModulePkg/Library/DxeMmUnblockMemoryLib/DxeMmUnblockMemoryLibNull.c |= 40 ++++++++++++++++++++ MdeModulePkg/Include/Library/DxeMmUnblockMemoryLib.h |= 40 ++++++++++++++++++++ MdeModulePkg/Library/DxeMmUnblockMemoryLib/DxeMmUnblockMemoryLibNull.inf |= 29 ++++++++++++++ MdeModulePkg/MdeModulePkg.dec |= 5 +++ MdeModulePkg/MdeModulePkg.dsc |= 2 + 5 files changed, 116 insertions(+) create mode 100644 MdeModulePkg/Library/DxeMmUnblockMemoryLib/DxeMmUnblock= MemoryLibNull.c create mode 100644 MdeModulePkg/Include/Library/DxeMmUnblockMemoryLib.h create mode 100644 MdeModulePkg/Library/DxeMmUnblockMemoryLib/DxeMmUnblock= MemoryLibNull.inf --=20 2.30.0.windows.1