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 ED6AAAC08FE for ; Tue, 6 Feb 2024 01:58:21 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=qv/GpdxG1oeMkKHNrlisEdWXKUsN1BwYSRpjjSPoTJs=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1707184700; v=1; b=LZIWzLOjRfHkh/mY3ALckjKB0pcUM5yieD5VJi1/4qnT+3dk//3g9BCgRN857+wCHhsyttDS e2JgO9c7f8H5SGIbhqD8Yl3c5RihZ7ynBXuyRZsP9PGixvgND5JhAD9S1A2VKGksmaBeOuea08v HLrEFJj6l16iykQ7GKupSuco= X-Received: by 127.0.0.2 with SMTP id MvZfYY7687511xuNMpsGZsmF; Mon, 05 Feb 2024 17:58:20 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) by mx.groups.io with SMTP id smtpd.web11.12552.1707184694246358540 for ; Mon, 05 Feb 2024 17:58:20 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10975"; a="18074371" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="18074371" X-Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 17:58:20 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10975"; a="909469821" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="909469821" X-Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.55.43]) by fmsmga002-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 17:58:18 -0800 From: "duntan" To: devel@edk2.groups.io Cc: Ray Ni , Laszlo Ersek , Rahul Kumar , Gerd Hoffmann Subject: [edk2-devel] [Patch V2 2/3] UefiCpuPkg: Add more Paging mode enumeration Date: Tue, 6 Feb 2024 09:57:56 +0800 Message-Id: <20240206015757.1816-3-dun.tan@intel.com> In-Reply-To: <20240206015757.1816-1-dun.tan@intel.com> References: <20240206015757.1816-1-dun.tan@intel.com> MIME-Version: 1.0 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,dun.tan@intel.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: uV1NEsrabOgU5bt1RvOoN7lEx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=LZIWzLOj; 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 Add more Paging mode enumeration in CpuPageTableLib to support forced mapping a range in 4K page granularity. Signed-off-by: Dun Tan Reviewed-by: Ray Ni Cc: Laszlo Ersek Cc: Rahul Kumar Cc: Gerd Hoffmann --- UefiCpuPkg/Include/Library/CpuPageTableLib.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 = 0x0302, + PagingPae4KB = 0x0301, + PagingPae2MB = 0x0302, + PagingPae = 0x0302, + Paging4Level4KB = 0x0401, + Paging4Level2MB = 0x0402, Paging4Level = 0x0402, Paging4Level1GB = 0x0403, + Paging5Level4KB = 0x0501, + Paging5Level2MB = 0x0502, Paging5Level = 0x0502, Paging5Level1GB = 0x0503, -- 2.31.1.windows.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115137): https://edk2.groups.io/g/devel/message/115137 Mute This Topic: https://groups.io/mt/104191040/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-