From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web10.12286.1683711287234874834 for ; Wed, 10 May 2023 02:34:47 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=gyWJ0psG; spf=pass (domain: intel.com, ip: 134.134.136.24, 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=1683711287; x=1715247287; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=FzLh0F7RTotXCQx+IKyHk6XESkwbLHNFSkI6iJ48CfQ=; b=gyWJ0psGvr1bSpGfFrVKRlT6yDsZBf/VSNVn31rx3+gVYZJsWxJjZ6oZ Pa0eGpkfAV8TNEh2mB+c267/rglzrD6PcgbCnEHiXgBpmR7vBgEoIPwDA KF/Ku597MrCyZ/RtP0/tyH78gN9o8S97uBJHQBVIJYeCiqrsKhNT0X7rE pwXO/i657BaqsYWHmvxY6omVgPVLyVZGygQGoA7nPDYLDAU3IIfQJRUav VySHU4P4t7K/zENjIIvlXZqMb6cvyujMnU70RbcVKsQeHldai42yED9OT dNAcRSKhmGYaCmqtwsrNUfZG/FEl7l8o+RvvwMgloEYXll6MWG+b8RrJ+ Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="352360830" X-IronPort-AV: E=Sophos;i="5.99,264,1677571200"; d="scan'208";a="352360830" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 May 2023 02:34:42 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10705"; a="788859538" X-IronPort-AV: E=Sophos;i="5.99,264,1677571200"; d="scan'208";a="788859538" Received: from fmsmsx601.amr.corp.intel.com ([10.18.126.81]) by FMSMGA003.fm.intel.com with ESMTP; 10 May 2023 02:34:42 -0700 Received: from fmsmsx602.amr.corp.intel.com (10.18.126.82) by fmsmsx601.amr.corp.intel.com (10.18.126.81) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.23; Wed, 10 May 2023 02:34:42 -0700 Received: from fmsedg602.ED.cps.intel.com (10.1.192.136) by fmsmsx602.amr.corp.intel.com (10.18.126.82) 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, 10 May 2023 02:34:42 -0700 Received: from NAM04-DM6-obe.outbound.protection.outlook.com (104.47.73.43) 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, 10 May 2023 02:34:41 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZTTYmUa15yL5TiGx0HZOyW1gPzMwz8IMjJC+GvUQ+wPFQQtxOkXzcm4V/aQB1V3YcwzdqZbUYihWOQNgBbdYr5IjAC4wv6gzwKn3dxeU3v/8BVKcMHFs+Lx8lbFUtLqek7mj+N3Uf1UjpXng8u/B0FqbzBg0DLyWLI9Ym+E+d7V1TDZdxxuzvlszm/D6L+qZHNzk3LnPqZ+xpWi9fiMMJ6jyhPhfhAaJXhiyBB2TDcl837Bpeaig2N8KGrUa2T+8QVuep92rjhB2wM8M4laA8/+AGtC+s+ixSJHRxydDjqXxpDvn7ECORibq1a+C4XHDqM3IXKiy0w/weTSE6a47rA== 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=jqPgS4KZqzFsGaLFOFj3Twc1JOTNLvg9FvbeAKOOgvs=; b=ZXuTZj0sT2xDLS9Zk1Ij3iIIvj3ZBRzUB3cU5M8E5nCWvWGDAE10Com2CO5FDCVcsYZyfFqcb2dfoZvCXhuEPIzpDf24VBes1mi+6C+tRx6zCScoB5hTWPe/ROin5wOn1PLNtmFTtv+8TniPlv+0EPd2A8aJqdNZ0uMTfMf9X3pza8AII3SMwLGkCnwHSdB2AkVUx3ZkZRe9/aIeKdpH59lZovfkVmkQq7Ga2zQOioTHP4zYGmefm4QwQ3VVoCrRZLatdZ/W90ig1bMtXFDE/GVpJHO/XDxhmolM1O275vrRhqN6anRylovaYEAxopr8phTPG/I6vL4iETyCZY5Srg== 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 PH7PR11MB6770.namprd11.prod.outlook.com (2603:10b6:510:1b4::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6363.30; Wed, 10 May 2023 09:34:39 +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.6363.032; Wed, 10 May 2023 09:34:39 +0000 From: "Ni, Ray" To: Gerd Hoffmann , "devel@edk2.groups.io" , "pedro.falcato@gmail.com" CC: Andrew Fish , "Kinney, Michael D" , Ard Biesheuvel Subject: Re: [edk2-devel] Side effects of enabling PML5 in EFI Thread-Topic: [edk2-devel] Side effects of enabling PML5 in EFI Thread-Index: AQHZgpuBVDDESuPzfUeSGXRgX6tGfK9TO2SAgAAELRA= Date: Wed, 10 May 2023 09:34:39 +0000 Message-ID: References: In-Reply-To: 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_|PH7PR11MB6770:EE_ x-ms-office365-filtering-correlation-id: 3461e707-cdfa-4b60-2e83-08db5139c6eb x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 1nvZbz5EFXgWoPvxY5lSEoTtfkzLC7321eM1xLopnYax4kSYYWBSoqengWaVl015hppCiwgl/wkRhjvNJu3tmZ/LTO2SBTjd3OzsyB9GKSsjE5I+p+32cu7IzInlPp07V3pSRtxo1ifTNioeEYuffTu4TnM52yI2VQ89gG8JKOahhjZZkxhR1lEpizJrd6rAI94J7a+SuYaZDBH2mhQZhL1vGBu8t3fCxOH8w2pOSTwZggooF5k75r3bj2DUd4oOCVvxjbYDLHPUOPdWBM/a3qIf/v3HxIbP0O+GyXxd6KMdXDZ8YHdKYvtI4rdWq9DS9rOPsS0CKOc/eWO6+R9yL+GYcGSxM4DbcSSsNFdUave3ZyfsapaltBmLDmI6AoAFDALDKZuB+yK5T2WbJ48hK0/OXiP8l6omCMpempx3EeLUsa6+TrXGiZ2kPcknt7VDnKk80wAxUL/MeWmfjwOiqSckZNVW1nkOhgi6fpQfpUdOsHyAS3hOf42cPUo7mlOvbbIDa1gw3mEZiSOxSWnIlGO9LYMSRldgk9JYBeSzngJA2AuuzI0+iuce5JAu/ZMCzinwmyjPzkupfVnGlcR9DhnoJ/UZBX4aefzGQS5BxSvJwbOZx3bxGzC/xSnW9fcW 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)(376002)(39860400002)(366004)(396003)(346002)(136003)(451199021)(8936002)(52536014)(5660300002)(8676002)(66946007)(66476007)(66556008)(66446008)(64756008)(7696005)(76116006)(82960400001)(41300700001)(4326008)(316002)(54906003)(38070700005)(110136005)(33656002)(478600001)(2906002)(71200400001)(38100700002)(6506007)(26005)(9686003)(186003)(53546011)(122000001)(55016003)(86362001)(83380400001);DIR:OUT;SFP:1102; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?LMYWYbH2LfXkLYuLz20l6XqrabttodR+ENAg6QYWPT3iGfC8y+YyW5O/Z8gv?= =?us-ascii?Q?/+yc6iZTLqn/JBftlGIrs3xt+iwln4hGHDpjTjgHPu2ZgGqJFRUbK07oIcmd?= =?us-ascii?Q?obVYZzPDPAIPQNRdVHmQ3hbeSdIzC+A6n1sDkK257vTdgPD0X1ETtyL4BPtq?= =?us-ascii?Q?ZPmjh5Iptg47hMeBsMGXBsYbb/ESb2Jh3ERypb2zSYLz6hcM89X2c14wm19R?= =?us-ascii?Q?Ou6qQEnV1nawXP5y2kBqOnnvjaoydN255IRZgAfHqHFQ7LeVUvMwdYjloFks?= =?us-ascii?Q?0IWG3jaPZM5NbMWcbl/z5Nfzf1uDTz/QXbiNYHVV5n7PK6QuUv+YgvWodlbL?= =?us-ascii?Q?HzBlo0WDyX+SgGKgj09zuvOmBNMaL0XiVniVfub4af6Fv4Uj+U3m7YG+BqwM?= =?us-ascii?Q?EBYUaCehIKPI3BwuxUya4zv3FWiOInB9OfTj1tVc6yUbjbWJXxQhGtycs3j5?= =?us-ascii?Q?FjOzWKx7LQTvizk58IiMApweu9L9B6xvUE3DCxydBvzLOjgobWFCCH7lwO0N?= =?us-ascii?Q?ZvZIGRU7cphDPU791D4+dNvu9rkZ7LYqglLd2mYOCC8oQyUMHbkz7jSCXWJl?= =?us-ascii?Q?wbfVaFU/Dfs+MUH3pOs7OWPFeKfCCSR4WP9KE7bNMfzleZAgGdjToe1dAqXU?= =?us-ascii?Q?rHSfmrxZUetzjR0zknDlG3mVpGK9HvCE2d7T5h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D?= 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: 3461e707-cdfa-4b60-2e83-08db5139c6eb X-MS-Exchange-CrossTenant-originalarrivaltime: 10 May 2023 09:34:39.5210 (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: UeOQA6Ikwk+gcR42ghtpS7LtnHmPIZxn5yUv7BUYejeWBvfvOduWb8fcvEifZKCNqKkZUGeZF64xAHxlkY3JPQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR11MB6770 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 Firmware chooses to use 5-level paging when the platform using this firmwar= e claims to boot 5-level paging OS only. Usually, firmware uses 4-level paging to keep maximum OS compability. Thanks, Ray > -----Original Message----- > From: Gerd Hoffmann > Sent: Wednesday, May 10, 2023 5:18 PM > To: devel@edk2.groups.io; pedro.falcato@gmail.com > Cc: Andrew Fish ; Kinney, Michael D > ; Ni, Ray ; Ard Biesheuvel > > Subject: Re: [edk2-devel] Side effects of enabling PML5 in EFI >=20 > On Tue, May 09, 2023 at 06:24:03PM +0100, Pedro Falcato wrote: > > Hi all, > > > > (+CC people vaguely related to the EFI spec, the PML5 implementation > > and kernel EFI boot code) > > > > As a result of the latest 5-level paging patches, I've been looking > > into how tiano supports PML5. > > This raised a question: Doesn't enabling PML5 in-firmware break > > compatibility with non-PML5-aware bootloaders and kernels? >=20 > kernels yes, bootloaders probably not (unless the bootloader not the > kernel calls exitbootservices). >=20 > > So, how is any of this supposed to work? >=20 > edk2 is relatively late to the party, so with everybody else supporting > 5-level paging already it might not be much of an issue in practice even > though there is no compatibility handling (I know of) in edk2. >=20 > When running your operating system museum in virtual machines you have > the option to just turn off 5-level paging support in the virtual cpu. >=20 > take care, > Gerd