From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web11.6914.1683684020865358921 for ; Tue, 09 May 2023 19:00:20 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Dnp5CmUa; spf=pass (domain: intel.com, ip: 192.55.52.151, mailfrom: jiaxin.wu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683684020; x=1715220020; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=3iVEpqZfyJwWNXYrFGFxCoFCLOu5TLI/dYxmx4ZenEo=; b=Dnp5CmUadsEbCh6F4AcnL9wlVpN1ZogfI7ZRK23FknPXAa87glrb3biO nAj4qNL9BoF6dW/KMvVxxWxJYOxoO0/r8xeOq0otEnXqDMHrBuU017Ltl Bxoqv139Dm029UlVdTJfsnRKUXnAknkEzMAeePa1OUgmk4JRpwCZtyx96 waBPK7w/ptnvGpfzX6+x5iwO2lfmA7mbvmoBopveeGa/vA5H7OuWp7ddW kw2tOpQ2GXoanICxZcUcgU0r6qLvC5HQAX9N275Bnj1GTcjZm2DBhOBBw x7cPvNmXVFgzDBWwL/K7SNSeTVeKeH52dfqyM4E97y6iP8/VGfL7n9xKF Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="330469681" X-IronPort-AV: E=Sophos;i="5.99,263,1677571200"; d="scan'208";a="330469681" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2023 19:00:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="823361489" X-IronPort-AV: E=Sophos;i="5.99,263,1677571200"; d="scan'208";a="823361489" Received: from orsmsx602.amr.corp.intel.com ([10.22.229.15]) by orsmga004.jf.intel.com with ESMTP; 09 May 2023 19:00:20 -0700 Received: from orsmsx612.amr.corp.intel.com (10.22.229.25) 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.2507.23; Tue, 9 May 2023 19:00:19 -0700 Received: from ORSEDG602.ED.cps.intel.com (10.7.248.7) by orsmsx612.amr.corp.intel.com (10.22.229.25) 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 19:00:19 -0700 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (104.47.56.173) 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.2507.23; Tue, 9 May 2023 19:00:19 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FESjmOvN7PErPAoLAiTqCGFZjwMjVc/3aLqShsogyRjchBSJszdv+oxPU8SVwAiyOb3KatQfPIeEmpQAz3xxx+c6ktKUSY3xTfoMuvXjBcocVL8Bk3xysTul0+Pgl+R9M+zxwOOse68RybeOKSWv/68WZUMp1gn2r+JhR1XrdHnBmsvykk3Ft3PKIjBjah9pC7WGBcvPts8nQS25bY9WqSH7MTyB/4LYtx2pRA/Zx8i+AlEBbXpzOS5ZeUQN7lFTV459PV4NKYLpnyf+aSO6PWT4bBGcx8zlNGhB93hpHhGblE4WlgoteH+CxWEqtG6T3mpacjQbEthcf2DN26W/OA== 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=32oKqOpkL7SJDbXLaTHdmUZOxmxwFiDxYja0FbsR6q4=; b=KTOIhE+kwn7BzhnLMp488IqNbJLUcvt4E0uLd09YXAZ4TqgONbR/H5QQGHQFiZoF3XcV8fu02qpVk40Mo6pv+bNQzEn18GPGwqz+sv2ZVBkK0f/mpCPEDxbkKi9AkhIZUuW01ZZXzuv4Cy9ZDJwup/N1B8fFgrfA+zUitn0r5COr3WHQtFaWdS/BZ8eHoV1NlzULnNOoieFjs1XEQKf6VsuL0djmwDYarZiYmS3KJFezvx8SISXvf5HD1Q26TKVhAHx0o8QQoCufO9yNRSDIKK8L8ueS5y28/WAqqYkiuxL1EIrElUSfxkofSO+KSTGHbPpUN3yDbfkGFIvX/EjzWQ== 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 MN0PR11MB6158.namprd11.prod.outlook.com (2603:10b6:208:3ca::18) by CH0PR11MB5332.namprd11.prod.outlook.com (2603:10b6:610:bf::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.33; Wed, 10 May 2023 02:00:18 +0000 Received: from MN0PR11MB6158.namprd11.prod.outlook.com ([fe80::647e:54e0:2be7:9d02]) by MN0PR11MB6158.namprd11.prod.outlook.com ([fe80::647e:54e0:2be7:9d02%2]) with mapi id 15.20.6363.032; Wed, 10 May 2023 02:00:18 +0000 From: "Wu, Jiaxin" To: Gerd Hoffmann , "devel@edk2.groups.io" CC: "Dong, Eric" , "Ni, Ray" , "Zeng, Star" , "Kumar, Rahul R" Subject: Re: [edk2-devel] [PATCH v1 1/3] UefiCpuPkg/SecCore: Migrate page table to permanent memory Thread-Topic: [edk2-devel] [PATCH v1 1/3] UefiCpuPkg/SecCore: Migrate page table to permanent memory Thread-Index: AQHZgoQC1tNfKP+2t0yoEfi+2ogET69SwMcw Date: Wed, 10 May 2023 02:00:17 +0000 Message-ID: References: <20230509102253.16632-1-jiaxin.wu@intel.com> <20230509102253.16632-2-jiaxin.wu@intel.com> In-Reply-To: Accept-Language: zh-CN, 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-traffictypediagnostic: MN0PR11MB6158:EE_|CH0PR11MB5332:EE_ x-ms-office365-filtering-correlation-id: 2bab4e77-8cae-4bb7-3eab-08db50fa4dbc x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: rYMDZ3oltfflG5WAKxcUqHD4rcO7G+F2FZhhGq44WyEpOsz4klGHLwba1YOzVkyLiV2geywo0oRHrTAjXtRy0Tiq3L3oxu+afgM3LtDU0B8qHUicvlP1i57Mol82Hso+DnuqJJZWjuYKSGAg9EV7DMk/5yDAx4yL4cYm4QRLHbmZ3SwcVF3Z7eESe0d+YDSKAFv1qkFnDcRteagdd51EadtrQiFbhW9WB09Ayp3BSfSVqgb0q3YN/OGkaHji6QsZPsIcT9PVi3yKelRVdLZknjtmyktOLjKA3sdzeNAXlGE32NlC10175+xVSjTp2fKqVkOABSqnAQk6lXtuYVLOBw+vQnSxz2J6LPmOF7gSwAWR3Auz1UuqS0CA/5x27ViV9zY2Kw5XfbA9rPk9rW8MB4Fgk0veWHKydXDaboN7GlAFssTnwJG2tv/dLWaAN0G6vksGHdq3wiAfxiHWQzcAftvgalFkEDFNNF/brzKAU9HG+XyJGM3Yz6c/DKd1CenhWVc6AsEgb2Wh/ZFyZkDE2BMx2EMrrg2xsYiq4E2dufmLHlbQUMt+LMeqWHUVxxA/Oi2e+pCKniGPDyBc+njvhcG16SLVxknPcejaLExwUWA19fI+r7lYJWB089uXQFBz x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN0PR11MB6158.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(396003)(376002)(136003)(346002)(366004)(39860400002)(451199021)(4744005)(2906002)(186003)(478600001)(7696005)(71200400001)(38070700005)(55016003)(6506007)(26005)(53546011)(9686003)(41300700001)(316002)(82960400001)(122000001)(83380400001)(33656002)(38100700002)(110136005)(54906003)(107886003)(66946007)(66476007)(4326008)(64756008)(66556008)(66446008)(76116006)(86362001)(5660300002)(52536014)(8676002)(8936002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?DOuMYuiKcRUHQ0hHDQoRfRWCCsuZtemi+Q6hhkSM+5KoiSzNeFi9Q6mWHrCc?= =?us-ascii?Q?q+ipma7qIZ0JKoctSmyiyzWtVdPO3WjvbxsxBdKDLr5ckgHClyxwfgR5FIUo?= =?us-ascii?Q?Ug2bEtCmqhpyuqJ0VGj+ifevWHObMNPm4R7gVqvXDhdCne3HHpahR2ucOE7N?= =?us-ascii?Q?mM1B8FtEn/4JNiBIYLCc61IZrq9Jv0huWNQ4xMin9fGBwkpLCLvDElD3SV88?= =?us-ascii?Q?GvK3VHDM8ilsdk7I6DbVvZ6jlZCEPnzOzflokrkdd1exETkKD4E25mke/tBs?= =?us-ascii?Q?uSnovFrBZ/dw7o/Qbr83pBKvbZZ6WcgG6Bzm1HLo+oVDaMdZuPmJGnIdOqMb?= =?us-ascii?Q?mcmVtVctk6wYyMUK/68U+bUJGylmOVHjfmKbZ8+2y451g02/Puga5PxKpfAn?= =?us-ascii?Q?gWvEd5Mws0XCe9byg3LgQjamVPQaAgaGRaEseCvrn/pO5NABpBhHrZKBmkqD?= =?us-ascii?Q?whNqnV/J9krRSybEBwKQ5REDtvxFoplw1OLpBtLLh2gt/RMXonmOVYh0f1WG?= =?us-ascii?Q?LBpP5HdeObAnb9ZdZVW00qCn/4oQrALU7QnzLPIHKbHEkm95/+OeIdxO8z8n?= =?us-ascii?Q?IuojOWdL01759Oznc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c8BC?= =?us-ascii?Q?0JfRr35geqb6je+0M4HAkLPSdZ9ylTei5b++sTuTH2dsgGANutceIjNDY5lc?= =?us-ascii?Q?5vann4qiBKal7LUS5ubqjNESgs4HcE7MyWTIpW6l?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN0PR11MB6158.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2bab4e77-8cae-4bb7-3eab-08db50fa4dbc X-MS-Exchange-CrossTenant-originalarrivaltime: 10 May 2023 02:00:17.9195 (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: RVcDj2edPtuoYfSZYvkS/II25z/QyI8fFvcVoWCh8MMp8thpbwXxzO85yGkY9urwHtM8/Ln99BZ5h+3NyKa0rQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR11MB5332 Return-Path: jiaxin.wu@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Hi Gerd, Could you share me which document introduce the sign-extended impact the li= ne address width? Thanks, Jiaxin=20 > -----Original Message----- > From: Gerd Hoffmann > Sent: Tuesday, May 9, 2023 10:39 PM > To: devel@edk2.groups.io; Wu, Jiaxin > Cc: Dong, Eric ; Ni, Ray ; Zeng, S= tar > ; Kumar, Rahul R > Subject: Re: [edk2-devel] [PATCH v1 1/3] UefiCpuPkg/SecCore: Migrate page > table to permanent memory >=20 > Hi, >=20 > > + if (PagingMode =3D=3D Paging4Level1GB || PagingMode =3D=3D Paging4Le= vel) { > > + // > > + // The max lineaddress bits is 48 for 4 level page table. > > + // > > + VirPhyAddressSize.Bits.PhysicalAddressBits =3D MIN > (VirPhyAddressSize.Bits.PhysicalAddressBits, 48); > > + } >=20 > virtual addresses in long mode are sign-extended. Which means you have > only 47 bits (or 56 bits with 5-level paging) for identity mappings. >=20 > take care, > Gerd