From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by mx.groups.io with SMTP id smtpd.web11.5781.1683679897600489520 for ; Tue, 09 May 2023 17:51:37 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Lj4+izGL; spf=pass (domain: intel.com, ip: 134.134.136.20, mailfrom: zhiguang.liu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683679897; x=1715215897; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=NEpYF36Im5KsXfL2c7Gx7ynTRK5PP9PdouBauzKWwy4=; b=Lj4+izGLa7xOeR+Coqv9lMg8DbSTMQQRPj2gLdvksCJs8X4jL31SmA/F 5RvovHq10ETcZjVo10PCXhRLwsR2RAEEq6JIIwptYO/P0YrX/J+9tR5Cf hXAKVZq4BcWdWE2DvjVl5yfpEOgy7MUGkyMBVteIcZac9HWiFe8Ou4cZy Y+lQvxjsM9u/u183szyHfxdjcrdp57NAUV5502RAEv1d6IGsaBXVVrgM8 y99h4zHi/ZJkUbabeSqilYnAVcnlCklkcj0ZRAOBIDQSHiFP+BV7aQshQ tAC4MutLHFgM+gUcXrTmEYdC9G452QuuwK67DvKijKTS+jAI3AfpV5mLT g==; X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="339330623" X-IronPort-AV: E=Sophos;i="5.99,263,1677571200"; d="scan'208";a="339330623" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2023 17:51:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="693196014" X-IronPort-AV: E=Sophos;i="5.99,263,1677571200"; d="scan'208";a="693196014" Received: from orsmsx601.amr.corp.intel.com ([10.22.229.14]) by orsmga007.jf.intel.com with ESMTP; 09 May 2023 17:51:36 -0700 Received: from orsmsx611.amr.corp.intel.com (10.22.229.24) by ORSMSX601.amr.corp.intel.com (10.22.229.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 9 May 2023 17:51:36 -0700 Received: from orsmsx610.amr.corp.intel.com (10.22.229.23) by ORSMSX611.amr.corp.intel.com (10.22.229.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Tue, 9 May 2023 17:51:35 -0700 Received: from orsedg603.ED.cps.intel.com (10.7.248.4) 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.23 via Frontend Transport; Tue, 9 May 2023 17:51:35 -0700 Received: from NAM12-MW2-obe.outbound.protection.outlook.com (104.47.66.45) 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.2507.23; Tue, 9 May 2023 17:51:35 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=L7otAijW2qqTivOBlFIdUaMoqI2H/Yi0BsjyeFm8JWTYK+1qBCc8DbX4XfKg/wf1mAPoxMO1wfdMnl98QAw99A5AeURY4ar1rxfXjNEn6ib8ICP4z6F+me5uITgLCxQKEZnfKDB944XA6GA7x/qv5MQqm2uR/Ab4XNleaQ/+jc7w256i2Neh9ghQ/3OvAxyYAxHIdfrVEIUnX99wGQvkuqO2JgwGn4/2XBY4AmX4zST7+5Wrw11KCGg0N6WSfORNQIH9t36/Qq5q3OL4aOK7dhJW/Q8NcTgUo1ciKxvdlDNyyTCcTpN1z73tK9C9XK3cnNGi8gr/Yj5KhLFhKDZDsA== 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=ZvBQXAy88NxChYEBsWumFCebBQhQFg0B/vae+Wr8bsI=; b=SNUrH/tSeBrmLCMt57aoG06v+dZsEnz9ik6h2W6/9Hl9Vi9bIUltn+AqeVrZGCNvSx+uD/sXv825eQQEPqNrb7/UYTfzlzCVL9AUrVvE48T7itpJdNSeMHgkHGecRJKXVSoBUWtKAObGb9ck21DhfCPAunFLv5T3EPq7EPUmM/ELLfGbNYUB919EuV/mmh2snpSchB6YMLAMCsS+p+yTS9HWdkPxyBB0xOMZ0a9VOpHmiXJkW6koENA28vLVRBM96nuwF17vMrNP+bXyQKSFJbs5OREUVnlGUQX7Zwcv6aMHvOoLZPaA0YmAN0LuicmaLbEU/MLEB/aaR8JPHQGyPw== 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 PH0PR11MB5048.namprd11.prod.outlook.com (2603:10b6:510:3d::14) by BL1PR11MB5448.namprd11.prod.outlook.com (2603:10b6:208:319::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.18; Wed, 10 May 2023 00:51:28 +0000 Received: from PH0PR11MB5048.namprd11.prod.outlook.com ([fe80::117c:1af8:8924:2473]) by PH0PR11MB5048.namprd11.prod.outlook.com ([fe80::117c:1af8:8924:2473%4]) with mapi id 15.20.6387.018; Wed, 10 May 2023 00:51:28 +0000 From: "Zhiguang Liu" To: "devel@edk2.groups.io" , "kraxel@redhat.com" Subject: Re: [edk2-devel] [PATCH v5 0/5] UefiCpuPkg/ResetVector: Refine page table creation, and support 5 Level paging Thread-Topic: [edk2-devel] [PATCH v5 0/5] UefiCpuPkg/ResetVector: Refine page table creation, and support 5 Level paging Thread-Index: AQHZgYVOBSaEc9M0ak2UFU0oHOx6na9SFVoAgACaboA= Date: Wed, 10 May 2023 00:51:28 +0000 Message-ID: References: <20230508081504.1067-1-zhiguang.liu@intel.com> In-Reply-To: Accept-Language: en-US, zh-CN 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-traffictypediagnostic: PH0PR11MB5048:EE_|BL1PR11MB5448:EE_ x-ms-office365-filtering-correlation-id: 47c01b1e-ca82-4509-e65e-08db50f0b037 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: BCGZozxENP/F2Zgtb+nxNHWjqSplREn5hasXTv2xL0jjCgCIWEaRIZP1MGLD208UyvY1J9E70pQxib4czjo7iK5K1NfPKuJlkpvL/Lym80AnSB7EknB/oc/3+Ey+wSfVrsZhT6mCa9JI4GAIKQEwQn4ehFKI98LPxYK+ui9tw3f6Ll09hV7AOytYD03zY0jKWH65F0H1R8YK6wLNisOU6D0rUuTIWeOi3RPtr8QTsiAue3iqL/gNDQA9WI2rpwWJ5S3B8e5yoadrAusL+ppLrbZXaDttNoGRin5l9+JFhtcT1vQXooHtxZuseenR9Ykja+0jp+VZEciMAduF95ZpsT7XVWxZ1IoBF7bXUXYGwDr7JCihBRhFHBYQhkZT0eXt1MOaMzlUm3/qojiVJfhDoGQ1Tad1YjRcCmaquG+G/XIhm+aCE6MJ9JhftWEhd0ZiXLOMW3xkcnInzsHsLAO+SnjcbthCw/BhfAm7ncnI2o8EzDiK9646HLPUDIduINH/FXr7G3c9Ii5sU50DgBSM4TvdMGLDeQfjiHjv6kpCF479Fdky0KZkkB2rJmHLP6Va5O5GTOO1Tc6/+K8VxcAUU09fCEiQCe9YHQVBnuzuk+6ZO3dANL2iae9ycTCdMeXo x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:PH0PR11MB5048.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(366004)(346002)(136003)(376002)(396003)(39860400002)(451199021)(2906002)(38070700005)(41300700001)(66899021)(38100700002)(8676002)(8936002)(52536014)(5660300002)(33656002)(55016003)(71200400001)(7696005)(86362001)(6506007)(966005)(478600001)(83380400001)(186003)(9686003)(53546011)(316002)(82960400001)(122000001)(66556008)(66446008)(64756008)(66476007)(76116006)(66946007)(110136005);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?v88TCUFZ9ukTQlCguwt7GhkBKOycYYMx/hnFTLCqbMCsURDLA32q8MDat7hQ?= =?us-ascii?Q?lpJTBg6s8G96IimfbZqHllB4zl0NpCRK6J6+3Hb8fn65cjGQSVVn0l/eUEmG?= =?us-ascii?Q?xqUGAKG1zp/yLiRXVBJ1y+CHIZsZX7PLVhOOiW3yep6ObI+yn3eiDiesDweB?= =?us-ascii?Q?7eQDFk0piSSxbIWwBFoG5SanCEcjjN5WcW8WG1HCs9hDM+zKlvah10ZMwwHz?= =?us-ascii?Q?3d4ti7/4fznyqBqDM3FR9FX/R6mipsUpP0jGFYvlof61WLw+kO9pNXZA7aSv?= =?us-ascii?Q?tZ2ad9iQffsyFbIYQFhgToMgvnHLdEAUoVxM4eeIHU2JlI+tg5Ghj+8euoY5?= =?us-ascii?Q?CoYUfGt+pbmc2eVtAKwuDemHz+HcVU/wDxAt//3Jvq6+1IbYzDne7SR4oEwE?= =?us-ascii?Q?IeuMxDO0zxTEowCZ6ERh8ERROG8w1iq9eymmu/dNC2mqIXwVdoumdqSkBluq?= =?us-ascii?Q?jvr7SFfxPHxnXeeJCYsAlAAvPHQL+8dcugzNg8cqEYIz12aEQ1qxJnygdIA7?= =?us-ascii?Q?Uf0ZIlwWGXfj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ascii?Q?cOPhABP8mLy/hfYopwt6NhVvmiM/guiVgYkmk9erZzasVFy82g3t9MiUlv4z?= =?us-ascii?Q?AasFNsogVn3bPBNyePHzJdlLHJ3nbfQByR0c0HNtX7ibogSP0k/ApkTVHDl6?= =?us-ascii?Q?YvcN03+zYEcUxyh7AIs=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: PH0PR11MB5048.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 47c01b1e-ca82-4509-e65e-08db50f0b037 X-MS-Exchange-CrossTenant-originalarrivaltime: 10 May 2023 00:51:28.1742 (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: nzJo1jlyMekcm1xd31vDQTTNiUdZQ2QjaKeE5Z+cHMYMpfJcykJzy+aMC49Zk/8ofvHTh4huhlUjNBOnukTN9w== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL1PR11MB5448 Return-Path: zhiguang.liu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks Gerd for helping test. Thanks Zhiguang > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Gerd > Hoffmann > Sent: Tuesday, May 9, 2023 11:38 PM > To: devel@edk2.groups.io; Liu, Zhiguang > Subject: Re: [edk2-devel] [PATCH v5 0/5] UefiCpuPkg/ResetVector: Refine > page table creation, and support 5 Level paging >=20 > On Mon, May 08, 2023 at 04:14:59PM +0800, Zhiguang Liu wrote: > > This patch set simplify the page table creation code, remove some > > hard-code, combine files and support 5 Level paging. > > > > V4: > > Refine comments and update below macro names: > > PG_NLE -> PAGE_NLE > > PTE_2MB -> PDE_2MB > > PDP_1G -> PDPTE_1GB > > PAGE_BLP_ATTR -> PAGE_BLE_ATTR > > > > No code logic impact > > > > V5: > > Update below macro names: > > PDE_2MB -> PAGE_PDE_2MB > > PDPTE_1GB -> PAGE_PDPTE_1GB > > > > No code logic impact > > > > Zhiguang Liu (5): > > UefiCpuPkg/ResetVector: Rename macros about page table. > > UefiCpuPkg/ResetVector: Simplify page table creation in ResetVector > > UefiCpuPkg/ResetVector: Combine PageTables1G.asm and > PageTables2M.asm > > UefiCpuPkg/ResetVector: Modify Page Table in ResetVector > > UefiCpuPkg/ResetVector: Support 5 level page table in ResetVector >=20 > Tested-by: Gerd Hoffmann > Acked-by: Gerd Hoffmann >=20 > take care, > Gerd >=20 >=20 >=20 >=20 >=20