From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web10.43776.1684306836850484901 for ; Wed, 17 May 2023 00:00:37 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Qe2W7Yd3; spf=pass (domain: intel.com, ip: 134.134.136.100, 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=1684306836; x=1715842836; h=from:to:subject:date:message-id:references:in-reply-to: content-transfer-encoding:mime-version; bh=226U40HpkM1hr27Svq7l+LjKgGsuKjmTmHxPCxQwMrM=; b=Qe2W7Yd3WAkLJXz77lyJb5EMcuEomKQ/YxfyWTfdsQS0aM+uTjYiyLyv A4Hf661Phd5DLQguCZaoyq1jcEOlBqE5LMzaHtjVsAweEPZ2qZ930U0zh FjHtPT/rwW74yZaCOPIZnyGgZtmNZPnbAYoPDwArnKhnMO/B2wMFHvjEF Yo9sjuyKVazm0JcvPJUccNUV8pmD3L0rinAgvUVhp5s+TYEVIB7D9knDX r1Vla2ow2HqZU1diAC9mpW+PLhNNXR0KazVoawBlkk11avTI2s7YMIKAk mL0U/FE48m10OmLSmvtShhAVAqBQ+KPJIPvNMqlTUs73UFfsZQecf7ODs Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10712"; a="417339069" X-IronPort-AV: E=Sophos;i="5.99,281,1677571200"; d="scan'208";a="417339069" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 May 2023 00:00:36 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10712"; a="701647215" X-IronPort-AV: E=Sophos;i="5.99,281,1677571200"; d="scan'208";a="701647215" Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orsmga002.jf.intel.com with ESMTP; 17 May 2023 00:00:36 -0700 Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx603.amr.corp.intel.com (10.18.126.83) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 17 May 2023 00:00:35 -0700 Received: from fmsmsx610.amr.corp.intel.com (10.18.126.90) by fmsmsx611.amr.corp.intel.com (10.18.126.91) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 17 May 2023 00:00:35 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx610.amr.corp.intel.com (10.18.126.90) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23 via Frontend Transport; Wed, 17 May 2023 00:00:35 -0700 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (104.47.70.107) by edgegateway.intel.com (192.55.55.71) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.23; Wed, 17 May 2023 00:00:30 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Z6bXpVSv5VXm6gimW90t6kNXm814+Sf4qs8xzXbl4MxlGohxZ+VX80yp25WE4gvRLDlMW13Avz/FS24Q1g8heTkScNzzNloGawUqrl6FcwYHpVkXLVmdncWP2A2pIyNKgLmPCzjam5O9hyKRO9tdgFTRu7Xo9bXrXVeZgHPbs+zPn3VMriZ6Egd/+xAr/3Fb4hFFimX/HgGk1p8gDbYy/wvktHW8bOvQtYmAetPz2sj5d84kJLVR1OwRJqBKW1S14tbZqh30o3vqqQdhhr7SHmPC3jP9udXnM5PRXRl5kZkLDaZZPEiNAxTh1RqV7UBDNN2Em4KezuZKR1r3Otx8jg== 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=4UitUiS0C+o3oR/QmJ+Q3xKKIqlJz57S7QnxhZg8hi4=; b=QOrQmOmC5t+RApx9rvT2f8UnfycpSpcUqdUN4sl5vZ0UFDvyuNnhO4MZL1Bs1muKMDldWZ3csmem78NMktEvsVHIiFnErFDv00Z8gZ1mFtLxLYP7lMTORw0zVE/A9evDa5TssLy9k2aY+yFe42X8ZZW4rr5ofd6f66Zx8JZlnAzshb3Xj+HAT/aRd4eBobeYfXlU8xI9HMtr2LdaTEDOxuht1ve0q6sbKJhqrt9Nn377ixEoRIbUrGUPFuPRNyyXX+lPd03OdGKM9CvwsNxAw1mrAzsvvcCVP2nzBIKEuTuptJ4u6KhoCLLiUAKdMbD2lEnk79DYIXZbPhorXyM9yw== 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 MN6PR11MB8244.namprd11.prod.outlook.com (2603:10b6:208:470::14) by SN7PR11MB7467.namprd11.prod.outlook.com (2603:10b6:806:34f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6387.30; Wed, 17 May 2023 07:00:29 +0000 Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::892b:b8e6:bab7:635d]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::892b:b8e6:bab7:635d%5]) with mapi id 15.20.6387.032; Wed, 17 May 2023 07:00:28 +0000 From: "Ni, Ray" To: "devel@edk2.groups.io" , "Wu, Jiaxin" Subject: Re: [edk2-devel] [PATCH v3 0/5] Target to enable paging from temporary RAM Done Thread-Topic: [edk2-devel] [PATCH v3 0/5] Target to enable paging from temporary RAM Done Thread-Index: AQHZhtOnUjiFEGr/90u7EKr1u5SFN69eDMcQ Date: Wed, 17 May 2023 07:00:28 +0000 Message-ID: References: <20230515021601.6244-1-jiaxin.wu@intel.com> In-Reply-To: <20230515021601.6244-1-jiaxin.wu@intel.com> 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-traffictypediagnostic: MN6PR11MB8244:EE_|SN7PR11MB7467:EE_ x-ms-office365-filtering-correlation-id: 9f6713f7-59a7-449b-d2ab-08db56a465fe x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: BmUegpoZ/d9NCKHVNL1jqDUwak0t85/a1KTqAN6BQWmNADDGx9j/ve133GWR5RFK9MH//UKzS7XcbA2qb/BPIYv4kYRofh1KC+GuGZr9D+YYj3+qMM80VR60z/tbeY13E8L+mGkrhaGL7OS/EIOnH6y05U204X1gfa/uA0BtOxZxJ3oL+ErTrliI41kmo/VvjHHLV0NrOrBDchA4uuvpLNNrBmNoY4y7A6BOAokTNwZ5kjPqx4NDCs6jAOk4gfSit9l9iXvkNj4xQ3kOc5cIFUOhYeGVZ5A4LC++rq2ZlN+ftGZZYR/hK7JX2aCrdx9LZDOF5vXlerzUm8AejEr6siNomautsOnT3c00DRwrdG+/JSO9GEgeo5RA82V1IbHwkaS6RdEuyUNkDsvQCRyyxo4K/7vth6OkQDDfFVe6126nMWeWVxbjMR5FRIAShvCJJBewWCD+pYU0Nod7foRyRdFGgLFn2gg0ZTbWrP+CGMKq2oVbuxCn8w6atZ0Dz3J/umBJJ4Ls6WqQH1qnMwHTbdSVKCdiegKtf7HBcqOREDUeVhDONk1CcDdpgVqEHX8jQp0l/pApsvwY62M5OAax6WY19mTKQPumDvMdHp4TUQ47fm3vs9Tr0287LBK89EGEi5iNt2Wl8XwQJH//o8b2ew== x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:MN6PR11MB8244.namprd11.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(366004)(39860400002)(346002)(396003)(136003)(376002)(451199021)(966005)(186003)(41300700001)(38100700002)(53546011)(71200400001)(7696005)(26005)(9686003)(6506007)(83380400001)(19627235002)(478600001)(110136005)(66899021)(66476007)(64756008)(82960400001)(76116006)(66446008)(66556008)(6636002)(55016003)(66946007)(316002)(122000001)(86362001)(5660300002)(8676002)(8936002)(52536014)(38070700005)(2906002)(33656002);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?nq/nUPo3gHnyJKKGBmp4IOSmWJMnyRrlM/39FVOSKYyVLJ5W31JhL/WkhLg8?= =?us-ascii?Q?G7bLBbu7VulivA+V3fS9nwSfcScTwhPqIuPmqBvBG9Z3AOOrl7Rb4ewqh5FF?= =?us-ascii?Q?Vh1jUtCJ8XNjb6gXuLrwRGtCIlHsyaGhNTqUNYMD4xx+WiE7ZG0E4k5+pbsq?= =?us-ascii?Q?EX5+4dZ7vA73W/uaFGCGaglfLg8CndZK+IB49dzrM5rMkPuQFInboDHUgTb0?= =?us-ascii?Q?mGy7xqe4iFLB6pPf67SxC1mTM39iLh26sjHQveyTVW+sG5BJjXI+e/iwUyLH?= =?us-ascii?Q?9GH79df6QmnReGwfRUvNVWNLPp+g0Q3Oc1moBkeWAez7+UBhrn2Bb8S1KQUV?= =?us-ascii?Q?jIYdCdv6vhosGdZ+D9NFz9QABJ3wC8MLM9HtvbxPOeHddDRvnKjtPDA5746+?= =?us-ascii?Q?BCi32EJz2atRZC4qWPCvGo2re23HvaIJl4X1NtOWsGe7mB+9DFvMgyIBmaQw?= =?us-ascii?Q?QDdMRSkkozqe0UIYJ6888MWRNs0Y8qm1ZMzeJ9CU7I99YCn5NCd9oJ7T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lX7u6laxsh8tPPbLFVXG6rxCfizr+?= =?us-ascii?Q?XU/equBJDjp8SPBYM8fHNu+x9Gf1ibWi1hJ3q+1INRbgc3r6aBWQ6ZGZJHGW?= =?us-ascii?Q?+kQ9dg/LRmoFuzrGQjw1Sm1qTtfy6n2cUIu+0UUcWxeGbownWUo4zx4eroIi?= =?us-ascii?Q?ularyIFFTGXg3lbSge0=3D?= MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: MN6PR11MB8244.namprd11.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f6713f7-59a7-449b-d2ab-08db56a465fe X-MS-Exchange-CrossTenant-originalarrivaltime: 17 May 2023 07:00:28.8422 (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: I9Qw6xSTZ+6R2WUY5MKMaAjoiyasdofVjeSjeYpNK+9FRS+Bk/9eDRgoMXUEJa9fqad66I/4pF02UAlMGd0UIw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB7467 Return-Path: ray.ni@intel.com X-OriginatorOrg: intel.com Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Reviewed-by: Ruiyu Ni for all patches. > -----Original Message----- > From: devel@edk2.groups.io On Behalf Of Wu, Jiaxin > Sent: Monday, May 15, 2023 10:16 AM > To: devel@edk2.groups.io > Subject: [edk2-devel] [PATCH v3 0/5] Target to enable paging from tempora= ry > RAM Done >=20 > For arch X64, system will enable the page table in SPI to cover 0-512G > range via CR4.PAE & MSR.LME & CR0.PG & CR3 setting. Existing code doesn't > cover the higher address access above 512G before memory-discovered > callback. This series patches provide the solution to enable paging from > temporary RAM Done. >=20 > Jiaxin Wu (5): > UefiCpuPkg/SecCore: Migrate page table to permanent memory > UefiCpuPkg/CpuMpPei: Conditionally enable PAE paging in 32bit mode > MdeModulePkg/DxeIpl: Align Page table Level setting with previous > level. > OvmfPkg: Add CpuPageTableLib required by SecCore & CpuMpPei > UefiPayloadPkg: Add CpuPageTableLib required by SecCore & CpuMpPei >=20 > MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c | 36 ++-- > OvmfPkg/AmdSev/AmdSevX64.dsc | 2 +- > OvmfPkg/CloudHv/CloudHvX64.dsc | 2 +- > OvmfPkg/IntelTdx/IntelTdxX64.dsc | 3 +- > OvmfPkg/Microvm/MicrovmX64.dsc | 2 +- > OvmfPkg/OvmfPkgIa32.dsc | 1 + > OvmfPkg/OvmfPkgIa32X64.dsc | 2 +- > OvmfPkg/OvmfPkgX64.dsc | 3 +- > OvmfPkg/OvmfXen.dsc | 2 +- > UefiCpuPkg/CpuMpPei/CpuMpPei.h | 1 + > UefiCpuPkg/CpuMpPei/CpuMpPei.inf | 1 + > UefiCpuPkg/CpuMpPei/CpuPaging.c | 202 ++++++++---------= ------ > UefiCpuPkg/SecCore/SecCore.inf | 1 + > UefiCpuPkg/SecCore/SecCoreNative.inf | 1 + > UefiCpuPkg/SecCore/SecMain.c | 147 +++++++++++++++++ > UefiCpuPkg/SecCore/SecMain.h | 4 + > UefiPayloadPkg/UefiPayloadPkg.dsc | 2 +- > 17 files changed, 261 insertions(+), 151 deletions(-) >=20 > -- > 2.16.2.windows.1 >=20 >=20 >=20 >=20 >=20