From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 91B90AC091B for ; Tue, 6 Feb 2024 01:21:16 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=8KT8VX/oQEj3hycaHIwwPJY8pzLiLXGGp4ZSuVCrHt8=; c=relaxed/simple; d=groups.io; h=ARC-Seal:ARC-Message-Signature:ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic:Thread-Index:Date:Message-ID:References:In-Reply-To:Accept-Language:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Language:Content-Type:Content-Transfer-Encoding; s=20140610; t=1707182475; v=1; b=k8+YL4DzpUlHyv27EApguZCPSVTDSzstyM+GVKkrWjcwa0V3LmvAbHAUoH4gDE2OlEuGM3kr GmDplJsfDv+KhrwLezr4/KXCbEL+ZuEW/rVL3e/sFuL5qnPRkRSfeACYkS44WyFL5ykjfBiWU1k bZsWuSlzvfbG+cskXfySfRc4= X-Received: by 127.0.0.2 with SMTP id eHGZYY7687511x59u4F30147; Mon, 05 Feb 2024 17:21:15 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.14]) by mx.groups.io with SMTP id smtpd.web11.11863.1707182474599299810 for ; Mon, 05 Feb 2024 17:21:14 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10975"; a="794453" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="794453" X-Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 17:21:14 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="5480850" X-Received: from fmsmsx603.amr.corp.intel.com ([10.18.126.83]) by orviesa005.jf.intel.com with ESMTP/TLS/AES256-GCM-SHA384; 05 Feb 2024 17:21:14 -0800 X-Received: from fmsmsx612.amr.corp.intel.com (10.18.126.92) 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.35; Mon, 5 Feb 2024 17:21:13 -0800 X-Received: from fmsmsx611.amr.corp.intel.com (10.18.126.91) by fmsmsx612.amr.corp.intel.com (10.18.126.92) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Mon, 5 Feb 2024 17:21:12 -0800 X-Received: from FMSEDG603.ED.cps.intel.com (10.1.192.133) 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.35 via Frontend Transport; Mon, 5 Feb 2024 17:21:12 -0800 X-Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.168) by edgegateway.intel.com (192.55.55.68) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Mon, 5 Feb 2024 17:21:12 -0800 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SbkrkRcrI993arZg6gtujTzCA4FBw1dPW8boIiuA62v/kT3y0+1Xpep6fkfezOWkWSM16h8CiB7VBYXwwYBAbMVHcwnL6256gL6vF5sInLOjqINVOirEYOeSXRGs8og6C75WKdVUKvFT0eF7nNNPtgOshMjV9zoVuNW8chKL3V2h35felmGMcqs2hCHl5WxABJLMJMJys9YemhNQKo71vCEpWauWOENQg3HZVRzco2rVMn6RUUC4R/aSq0DLob6ACa4FFu/1BVMvFzkDd5LVLZCkqoL7CXoqWB80RdELKA2n0RH27kBqtObTOLXFmLYP1YbQLjWj1c/nCyc1/iJfiQ== 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=H5RZo/33gnokmjdFl2VtindvodMe0dmeROIB1T1DDec=; b=gLKd6rm3JWZa7IUWVXJXFvnChxmWvg2UkrUExupsnDafSZIpmUz/QMYrBug5HAwi0hPY/PBZ5MO3NjfxcoOg5B/8ZS9A6+kJMqAlWrPT7/zw+tZ9WQuOvGCkMAgC8G7yPgiEy7dAYMazKMbLKoSbsTpXIme2LcsYMy3uJrtAJIOcFjk+M9801p52DTZXeZA/zALL5i40QGcb1AIgBTdNQgPo+O++nyeuepPWMs6ttc66Yv68B/gyqOO737gPINUjMarB5wwaqsx/4+80qrRI73fiCLHxP3PMYBLVSZZhMfv33uc4RAptp0ZiVu+CVG2sV6ciEL6LsQC6H8csKqvvCg== 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 X-Received: from MN6PR11MB8244.namprd11.prod.outlook.com (2603:10b6:208:470::14) by SN7PR11MB6749.namprd11.prod.outlook.com (2603:10b6:806:267::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7249.32; Tue, 6 Feb 2024 01:21:05 +0000 X-Received: from MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::f4e6:157c:2058:8b1d]) by MN6PR11MB8244.namprd11.prod.outlook.com ([fe80::f4e6:157c:2058:8b1d%4]) with mapi id 15.20.7249.032; Tue, 6 Feb 2024 01:21:05 +0000 From: "Ni, Ray" To: "Tan, Dun" , "devel@edk2.groups.io" CC: Laszlo Ersek , "Kumar, Rahul R" , Gerd Hoffmann Subject: Re: [edk2-devel] [PATCH 2/3] UefiCpuPkg: Add more Paging mode enumeration Thread-Topic: [PATCH 2/3] UefiCpuPkg: Add more Paging mode enumeration Thread-Index: AQHaWDxX0fS47+1jxE+LrDlA3PtQuLD8hPww Date: Tue, 6 Feb 2024 01:21:05 +0000 Message-ID: References: <20240205140345.1437-1-dun.tan@intel.com> <20240205140345.1437-3-dun.tan@intel.com> In-Reply-To: <20240205140345.1437-3-dun.tan@intel.com> Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-publictraffictype: Email x-ms-traffictypediagnostic: MN6PR11MB8244:EE_|SN7PR11MB6749:EE_ x-ms-office365-filtering-correlation-id: f00e6712-a4b0-4181-03f9-08dc26b1e3be x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam-message-info: VHETic8AYUmJg+wHdjfAXEv9ZbwFUJAIECBFpovnmiAxCVrcBOdvL73y38864KsFk1rq6lAiPCtGJoHtrjQ+MYYYsa06tpVXNs55AqiwRKCEv3+RYH/fSpdApTpfn4WKuDk7942nmQ6WLD2MXL7ri7uAPL0slmVTCFPTtfkV8Lj5q6eidtrfGpbojRMm2m7hplveqglw4b1VAkOqVuJDstIXIT58jOnyXC0sVBN6LZ0s6iotO0y/Y8Nv+LStl7FH+uRIu/DaoVkOJ5VSIEDXc9eRuUC31vIvwAYVWAKLGiPV0YPWCRw+z3ozZkSWyAwFdCVinllXJg3GznDMIfVqQLWFsXz7TuitED5QMoc2beeRR+p0rVEmzIi/7scMAbbHvNxHTiDzWx+DEqFio4pBtZ064PyMWb5DiMhWaoWHhUwabm0gRCgesLjSjS+47aLVq9xJampYolM4YboTHUVWNgDKOdo7jo72N1Gx6+B8OKauw4P36KgxgFY71HAUxw6buDBm9Exmqvx0ldH/Pc10QFTqenB6BsnvOa+NyhSwx9xGrdhgUAMM1CjT9jvrMKuNl5UaNHkhflakdgsJAvdE7jjcdpOqmFtBosx794rd77wrDEeEUed+k9P1pDd9q2mZ x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?nQrfccsVPQo2HirpeLGMHdIOPRNb0IvUEDOkD2Wm5HwTn1PNf+4uKUiy0mxU?= =?us-ascii?Q?pz/htSz4FRGOdKeQD6uPX3RTe9kdKsDv8u1t+X3dLiv1kj0p79SNNSzWg4Ly?= =?us-ascii?Q?TvjgB3uIXQzz/FwvMKBxDdxUN3m6cUaRM0d+A87FCW8uMnwJtCaLGRNaRF+g?= =?us-ascii?Q?W3ZFByenqnAPOHfsMWMHG9anDrbqmqoESy2K1TOsf5s0vxJlPg6jsRC2VX/s?= =?us-ascii?Q?ZG5m/gGu7WRSD9bQR/Io0XaeAClVVQK6rKzomMfUruxxRyKoxPiPnyd7RXw2?= =?us-ascii?Q?hqOd71VTg1S0kDMPel3xd3wkMHfvShujj/z1CnxU8uzWq8g3zJi+axueuzfL?= =?us-ascii?Q?bpq2avjocU7C0SBbMtTvN+v7n/PJuuVD6TuPNHvqtdNIaLnLsdweNOlVGNxO?= =?us-ascii?Q?zAEs4ds4V2gXgG1fYMQxedDf/IDLfON+XwuUBQEfXoUZ9Mc+qcOQfk3cRQrh?= =?us-ascii?Q?qbt1UfwpaBqu2akmUCAVPRg2llORiCmnaSWdYCajxQnwVFXZJhlvR3x9lJ/w?= =?us-ascii?Q?1iQWTL54xk2UMh+o5+bSrVfire1SgextkCqgBi4uRDAD3/ftnAyYI1stjmO+?= =?us-ascii?Q?qD3Dtqi/c+pKKUBG6Ao2QxCIqhMPSm1Cvy63bZKfmxVyUQiT4oFHGL0lTNhe?= =?us-ascii?Q?88KrRVcxke2/u4upG99wm0oyeNhVOsTiHkVuk3xq3rEnf3bPW3k0qFRpjNMS?= =?us-ascii?Q?wP4gS4TotgZgV7lYrLHL2L7RLgYouAIPPvJc5yRKYB/AbFWo25dwkZgN5BVT?= =?us-ascii?Q?XZ104srrCM/CROXG8nDzwE9irtp45IG3azfuQaLPhp1b+vqOzOo6qOUok4i4?= =?us-ascii?Q?LoDZF8ywtua3hCwj40iXn0okzAlYGy7ouXfKDR6nVVq88D/VtFJxP8VM266J?= =?us-ascii?Q?rLzMi94BVawSW4CghCOtogDFYOYz9k41EoyBc2A6f0+VdbVZdqyuEMYdpHL2?= =?us-ascii?Q?NpfPpOQXX0RlgA40/E92X0Di0ZoZUNpT5xuqekOE0SIq+CB6v4uBBtsY/6Ad?= =?us-ascii?Q?3kkksZzI8MJY7k2CiQChRHtq4KO7OnpVqRvIdaXuMxR0GW9rMmE/wpt3UgoU?= =?us-ascii?Q?5nB3JgK1ujuoyjpd8SDF0BwXA0FROtQ6JDCvi6+mtS3bN39VMbiO9eIL8UHO?= =?us-ascii?Q?1SMrkodCfw4Es47qKiS+ioMLXfnBMebNDj5UaON3hoRcYOmPBiGmG3crpj4c?= =?us-ascii?Q?t80qp3J6ZIQpQrNXkiwWbOwF6k8tfbVM/YJAIdxOKGHX7tzA2wWa3pS3T5ZE?= =?us-ascii?Q?8yrgPs2SR/neWi5kWS7XcvpcaRdW141uNkVd4G2lf0ZKUZzn+Nsfck18n6mX?= =?us-ascii?Q?wEfOq+FgTPswMq732InEFoxm5o+N4U06A3pAKfBS+fc45cteNerslzwOWchb?= =?us-ascii?Q?Ux1VXvso4rfevs1xQkt6mk2h7lOIOHooXN56LBPlcNI7LhwvF0y7Qpfp+jXN?= =?us-ascii?Q?lvuwlv1xfuSdfUQqw/tDjENlV3sXRFcYlbLITpClBLRtmF1a0aVAD7bbPCHF?= =?us-ascii?Q?e/UwhwCt+UqWBT1AwmFa/edL+TcbXBY6JFYTrNaR745qv91ZTbdxXjQ3qv6Y?= =?us-ascii?Q?tbH3bjBoMoJUtyGAOV0=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: f00e6712-a4b0-4181-03f9-08dc26b1e3be X-MS-Exchange-CrossTenant-originalarrivaltime: 06 Feb 2024 01:21:05.1375 (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: 6duYgMea/FYmDzrHLimDjWXz+hWEATzCEC0NHdO4s9RiucWXUo2YO+BN2Q8wEazaSnpLaCT8WpA6boSmex25Vw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN7PR11MB6749 X-OriginatorOrg: intel.com Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,ray.ni@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: IttM76MpPbsQbtXzDR1iCIi7x7686176AA= Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=k8+YL4Dz; arc=reject ("signature check failed: fail, {[1] = sig:microsoft.com:reject}"); dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=intel.com (policy=none); spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io Reviewed-by: Ray Ni Thanks, Ray > -----Original Message----- > From: Tan, Dun > Sent: Monday, February 5, 2024 10:04 PM > To: devel@edk2.groups.io > Cc: Ni, Ray ; Laszlo Ersek ; Kumar, > Rahul R ; Gerd Hoffmann > Subject: [PATCH 2/3] UefiCpuPkg: Add more Paging mode enumeration >=20 > Add more Paging mode enumeration in CpuPageTableLib > to support forcibly mapping a range to 4k pages in > page table. >=20 > Signed-off-by: Dun Tan > Cc: Ray Ni > Cc: Laszlo Ersek > Cc: Rahul Kumar > Cc: Gerd Hoffmann > --- > UefiCpuPkg/Include/Library/CpuPageTableLib.h | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) >=20 > diff --git a/UefiCpuPkg/Include/Library/CpuPageTableLib.h > b/UefiCpuPkg/Include/Library/CpuPageTableLib.h > index 78aa83b8de..6225a1d8e9 100644 > --- a/UefiCpuPkg/Include/Library/CpuPageTableLib.h > +++ b/UefiCpuPkg/Include/Library/CpuPageTableLib.h > @@ -46,11 +46,17 @@ typedef enum { > // High byte in paging mode indicates the max levels of the page table= . > // Low byte in paging mode indicates the max level that can be a leaf = entry. > // > - PagingPae =3D 0x0302, > + PagingPae4KB =3D 0x0301, > + PagingPae2MB =3D 0x0302, > + PagingPae =3D 0x0302, >=20 > + Paging4Level4KB =3D 0x0401, > + Paging4Level2MB =3D 0x0402, > Paging4Level =3D 0x0402, > Paging4Level1GB =3D 0x0403, >=20 > + Paging5Level4KB =3D 0x0501, > + Paging5Level2MB =3D 0x0502, > Paging5Level =3D 0x0502, > Paging5Level1GB =3D 0x0503, >=20 > -- > 2.31.1.windows.1 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115131): https://edk2.groups.io/g/devel/message/115131 Mute This Topic: https://groups.io/mt/104176235/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-