From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mx.groups.io with SMTP id smtpd.web12.17806.1641952521793935368 for ; Tue, 11 Jan 2022 17:55:22 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=kN4HZW1U; spf=pass (domain: intel.com, ip: 192.55.52.93, mailfrom: min.m.xu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1641952521; x=1673488521; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=AQBV6fVmZztPzHyD0qHViK2v1Ne/t+1B82XI1Yn+23I=; b=kN4HZW1UWUsIy9uwaIJB2uKxTjdhz7kmHkBEulosYWViYoBpn8VbVp8e pXe8iduCH34tY7rGzR1KjJO8x4Sx5c2d33kcO/v7yHD406h4M9thfbHtK Y8KgtjaR50I2z+FarCaTb36LAgwdbdDPyp+mCQzmkRhlaPr4WKAdkxqRF dCh2G6IK40f/jZ2titGnv4uVRD52irWbSOVBBQGkM4wYB7CKw9jJFormH ua5dEvUphWu71Fe9R1fJSjIfpeKqxbZxZdv8j5tKGKrxLTvR35jgl8mGN hXwgN6O0AOgcTSb1ha1gJhIGDn8BfJaMy3JzY8kErcInoObdToNIiWNSH w==; X-IronPort-AV: E=McAfee;i="6200,9189,10224"; a="241191669" X-IronPort-AV: E=Sophos;i="5.88,281,1635231600"; d="scan'208";a="241191669" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Jan 2022 17:55:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,281,1635231600"; d="scan'208";a="613414175" Received: from orsmsx605.amr.corp.intel.com ([10.22.229.18]) by FMSMGA003.fm.intel.com with ESMTP; 11 Jan 2022 17:55:20 -0800 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX605.amr.corp.intel.com (10.22.229.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 11 Jan 2022 17:55:19 -0800 Received: from orsmsx609.amr.corp.intel.com (10.22.229.22) by ORSMSX609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20; Tue, 11 Jan 2022 17:55:18 -0800 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx609.amr.corp.intel.com (10.22.229.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2308.20 via Frontend Transport; Tue, 11 Jan 2022 17:55:18 -0800 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.176) by edgegateway.intel.com (134.134.137.103) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2308.20; Tue, 11 Jan 2022 17:55:18 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gCnu3LUQ8ZGXB1D9e6CeEm5j2PrPjuaToA49muyp6mgEe1a5FFvccLLDep/9i1dMGopcTVkxpPTOl6LUZnlgaKp0hJfZ1594OwNcdHculi2r52mOqnSOT1GpHqcsyjad1NXOaPBB4PeFCFvrkBhq/mmvXAIZZ6HG3kJrLgFjb1r4lBO9oJpJSkuhO39fTvcWZygn4GfEkIUrAXDHaUgbDJrYjKsPRlUAu05K6br4vunIJlG9Dka4ppCgOSsI/lg8MXBXc9MmhXdEGMGs/6ES8gnwxAWyEsrhVhPrBTZp/6FEKEVn1F51wPeUwNl1fWvAPrNW9ooyZGU+tWw3TNT2hA== 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=VcpdSGR4WeSui4pkN9abLz0x+RdDYq6cVOpwvEraIKE=; b=Q0Vrps4x4hBAnWftecEpzVBMa/TYfPjXQ6n2SUbNucHJcrVaOecTBwc1/XtLBRD0zk2XqS2oI9+0p2Ax5loS45CMOu9ENQbetiAmD6iz6T0TXUmeYJHhFTWERqGpMxjVPwyDJQJSPaVxhDrJxq8bERnZNLlLI3UA19pe0WJjd/HnZ9BGSmdb7hdUHqrhdqnpt0YA8HPLGpAOEtzDZsD4QJA+bbVjqkkvyjLjPz6bQtzXmI5EBQZzrzc9CHS8Zly0Dl1brhFZ82S7dNEJetCpL/vzd0I/sGL7+jw2Dj123MdWCcDZmnnrVD4j34bL59JYKFgloF6p54HH3CLTtZouxg== 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 PH0PR11MB5064.namprd11.prod.outlook.com (2603:10b6:510:3b::15) by PH7PR11MB5941.namprd11.prod.outlook.com (2603:10b6:510:13d::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4867.11; Wed, 12 Jan 2022 01:55:17 +0000 Received: from PH0PR11MB5064.namprd11.prod.outlook.com ([fe80::fd42:b334:5030:af8d]) by PH0PR11MB5064.namprd11.prod.outlook.com ([fe80::fd42:b334:5030:af8d%5]) with mapi id 15.20.4867.012; Wed, 12 Jan 2022 01:55:17 +0000 From: "Min Xu" To: Gerd Hoffmann CC: "devel@edk2.groups.io" , "Kinney, Michael D" , Brijesh Singh , "Aktas, Erdem" , James Bottomley , "Yao, Jiewen" , Tom Lendacky , "Ni, Ray" Subject: Re: [PATCH 06/10] OvmfPkg: Add TdxStartupLib Thread-Topic: [PATCH 06/10] OvmfPkg: Add TdxStartupLib Thread-Index: AQHX8PBm3y4jVsICTkKzHW+y/ZV866wzVb4AgAGvF6CAKcSxEA== Date: Wed, 12 Jan 2022 01:55:17 +0000 Message-ID: References: <20211214134126.869-1-min.m.xu@intel.com> <20211214134126.869-7-min.m.xu@intel.com> <20211215100914.4vq24pkjrhmqjdg4@sirius.home.kraxel.org> In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.6.200.16 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: 2a21e97d-f900-45d2-6ed0-08d9d56e952d x-ms-traffictypediagnostic: PH7PR11MB5941:EE_ x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 40FFLBy9/SCtA/J9dhydWhclqS7aofHfZqREhYuS2854zay4w07cdkXChn45CV2gkD4f2ANMzMFHorfcrGBJqc1yCCkPrGeubtUlVTS4JmDSUdKJx9elF9/+cn4a1IX7sRQSbcK8VzkgEmua5WOFmmhWVxJvKAaXB/ZvHBBgGHxCuaE2wBpGV/Xa4Z100ZCql+3OmFfzbgSlQXtqi0UxTZgMVtQTnHpr6LYAPa9VpgtT95t+a9My7004+WYuI6vWs4vnb+9h1H9Mh+M9Wg4p8aVRsGILttqJ8+Qm+2cH/C6LA90aIl5XASfGOejufxSfxfC09Cj/vsQcyddGXaV6hGUZ+mUytlqCi9lQXE0G0q5aXF2tjP0JBFKQT65MK9BkbO9QJ2ZGUWA4cja0Mg+ePrTP1nQgYSG+593f4VwdSlL7ykFC5Rx8Moa9kdZ7iAYwwTTrwbalzef8CC7hmef7cEo1127d2gj9FPH5ArnbZmn7AoAYsQ0nIXkgPomk1Xck27QNXbqHb7Dv54JMW9f6tglN9JXJFBPlE7W+nMqpX35dHT6G0TGFwhjoYDwQP4pb6zN0lwVU7yARxpw7jMztFl7pQJr7gX2BpqlS+A0YRlU6kDkX/TTG9AXzhJ+FcBTDc1NkQsn9/rgCbvZry6LU/6G9o0eU8EHpaGq73vEDA6RZJFpgOIou7BaWrzSG2FBETWCkvXMpVd5G3qUXOmGWasw8sBrA9WLvLlzAQuNLjM1orvg/StpBbACe9FKcHghwfvp13LLqNiO/lwY+ISfUMHU+piYLO4bHhFhmSxljUfc= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB5064.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(366004)(6506007)(122000001)(508600001)(9686003)(82960400001)(5660300002)(38100700002)(83380400001)(186003)(52536014)(8676002)(86362001)(55016003)(38070700005)(107886003)(33656002)(54906003)(66556008)(2906002)(966005)(4326008)(66446008)(66476007)(76116006)(64756008)(6916009)(71200400001)(7696005)(4744005)(26005)(8936002)(66946007)(316002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?Tel5SRXiZShWa1s9B1Mwx6PzBWpU+H/PrL966sOGiksVnyhtVNnAvJuAkDWM?= =?us-ascii?Q?FRx/D9uorRXC9DJjAhWwvLgqjh7jbTjIwNCQh+xMluqar799Xsa50/hLPg05?= =?us-ascii?Q?A8cL99mqqhpSK2oCjWk0r9x7GUAi+QexVp0i06h9YspUDvfCi2pNZDES9wmi?= =?us-ascii?Q?4/GrzNCLQgpNopMxd0fQJl23uQ6otxycX/6GMSJuU8Cf+jZL8odOja78q4y6?= =?us-ascii?Q?pq0YJy1xxTPvvimuoQ9CUiFRtrQpIbb8oBYqZBuJb2F8HTwMa+UdyWT9DL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/waqR2LWY/7ZDv1xCqf7l7dYIDp4Od9hnIL8W?= =?us-ascii?Q?TBOvtWYQQ5nNg5xFYlASndRlAoDTZyzjaZHve+aXpsLDFgrBVpls4o0MWLVo?= =?us-ascii?Q?pryINe8Y5WTKDzJhIi4CVN2c47eTBpt+UpmZ1DQDSgejTs6YgnR8rWqOlIlV?= =?us-ascii?Q?CrSOxi6SMDE29ANL6Ig7l7VOH2naTxKTkXUPn7vADiJ9BuYJR0heg9j84YEs?= =?us-ascii?Q?8gLYQNYu311wPx/VmnNSlDoSEDRBwOZ1MzEqwjn1hDt9EVYEGS9tAsPJQb+f?= =?us-ascii?Q?RQ4PJk0t3nUyYsBB+G0ni6qRt9GDZ/zcYKXdgH5AIct8kRVCnHhWFQqWp1OL?= =?us-ascii?Q?bzyNeWM8aPsaiSMfBFYIDV/aHO9WSxZ5CQ5YRHA2gORKUnzNu4/qOW2xNRh1?= =?us-ascii?Q?0Hxp96O82wJMVvxakWYhvc+6odcvTuUQc3NtL7xkMl11mi1WZVn6FFJYlyro?= =?us-ascii?Q?2l0HwYQAzo4mqHO7fONZVLQ=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5064.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2a21e97d-f900-45d2-6ed0-08d9d56e952d X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Jan 2022 01:55:17.4153 (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: 1nH5BsG8J/AmX2jgo85aVteXG/hsiJj3AlUFGVpye7nylTaERvaIT1YfouuOjDtLpUhwbD2Ja9u5uY+UmnZa/Q== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB5941 Return-Path: min.m.xu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi > > > +VOID > > > +Split2MPageTo4K ( > > > > Yet another copy of this. Please don't. > I will figure out a Page walker lib so that these duplicated code can be > avoided. Thanks for reminder. After I implemented a PoC of PageTable library, I realized that there has a= lready been a same feature requirement. https://bugzilla.tianocore.org/show= _bug.cgi?id=3D847=20 I discussed with the feature owner (Ni, Ray). He said this feature is in h= is plan of 2022. He suggest I can wait for the library. Thanks Min =20