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 2C295941B08 for ; Mon, 5 Feb 2024 14:05:07 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=Sx8gesx+pXBBJH8eLrMyMtmbU8GR91FgndTwcxperYk=; 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=1707141905; v=1; b=K24JyFqBnSDVrtEcr3McUrQTQoII4va4Tl1ywETcYPt9jjhenLwZ0tBUsDpBrHQCIHyTF74P 3dhFcWDQChP/OsTpYPkhyEBYYfzAZ9SpPHOfy+GiUJz0XBPSPfe4LxaxqcafapArbsd9/Sr8j+D WUaKFR77zFDGOTibHVkFQV2c= X-Received: by 127.0.0.2 with SMTP id 0rysYY7687511xS53Ivzs4Gw; Mon, 05 Feb 2024 06:05:05 -0800 X-Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by mx.groups.io with SMTP id smtpd.web10.63542.1707141901412264836 for ; Mon, 05 Feb 2024 06:05:05 -0800 X-IronPort-AV: E=McAfee;i="6600,9927,10974"; a="416784" X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="416784" X-Received: from orviesa005.jf.intel.com ([10.64.159.145]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 06:05:05 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,245,1701158400"; d="scan'208";a="5334824" X-Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.55.43]) by orviesa005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Feb 2024 06:05:03 -0800 From: "duntan" To: devel@edk2.groups.io Cc: Ray Ni , Laszlo Ersek , Rahul Kumar , Gerd Hoffmann Subject: [edk2-devel] [PATCH 2/3] UefiCpuPkg: Add more Paging mode enumeration Date: Mon, 5 Feb 2024 22:03:44 +0800 Message-Id: <20240205140345.1437-3-dun.tan@intel.com> In-Reply-To: <20240205140345.1437-1-dun.tan@intel.com> References: <20240205140345.1437-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: DJ9fPLj4YL0RGeCVuTlPM2nfx7686176AA= 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=K24JyFqB; 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 forcibly mapping a range to 4k pages in page table. 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(-) 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 (#115117): https://edk2.groups.io/g/devel/message/115117 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] -=-=-=-=-=-=-=-=-=-=-=-