From nobody Fri Dec 19 16:03:33 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+101385+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+101385+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1679290480; cv=none; d=zohomail.com; s=zohoarc; b=D9Rhe2MbiDl3/Kby+zxPUCMmy+NHdP+Fg49AojTPC1ZKxkUfm32FXj4YuQyvmKCbgmBgWGaincWRlpJOgEu9MpSpg73r54kThF8CNOOj6zb2YuhS7uhPnY4gw4lmhOUSHy6NgOKsVk5F1KvZ6CCmw6zsjOKYlrotsocoNuY7pkY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1679290480; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:References:Sender:Subject:To; bh=WIrI20dUMKzNS/ygN/EESTklIa6JUlHe1YjGYaMwwGs=; b=katjVG2efAzU9gHlJtwerhuPNUq3K0UK8Qrkz2uj8x+oUU6adHMF7ty+WKACliB7dEaDlXrRtXQyU6ZgY+pAMBI5b0lfZusQwnw7+NQ21ddD0HRd46gXgxOz6r8ETcpgaKRYhgt7p1QPiY4QIW0JsGPyxgPaTP6BBgjgF8mm6I4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+101385+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1679290480488861.5663615313332; Sun, 19 Mar 2023 22:34:40 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id 4lpwYY1788612xCZa36xFib9; Sun, 19 Mar 2023 22:34:40 -0700 X-Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web11.7471.1679290475232002420 for ; Sun, 19 Mar 2023 22:34:39 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10654"; a="401155505" X-IronPort-AV: E=Sophos;i="5.98,274,1673942400"; d="scan'208";a="401155505" X-Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Mar 2023 22:34:39 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10654"; a="770059412" X-IronPort-AV: E=Sophos;i="5.98,274,1673942400"; d="scan'208";a="770059412" X-Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.55.92]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Mar 2023 22:34:37 -0700 From: "duntan" To: devel@edk2.groups.io Cc: Eric Dong , Ray Ni , Rahul Kumar , Gerd Hoffmann Subject: [edk2-devel] [Patch V3 05/18] UefiCpuPkg/CpuPageTableLib:Clear PageSize bit(Bit7) for non-leaf Date: Mon, 20 Mar 2023 13:33:16 +0800 Message-Id: <20230320053329.410-6-dun.tan@intel.com> In-Reply-To: <20230320053329.410-1-dun.tan@intel.com> References: <20230320053329.410-1-dun.tan@intel.com> MIME-Version: 1.0 Precedence: Bulk List-Unsubscribe: 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 X-Gm-Message-State: aK5xmSmJKPjxoauoi6Imb661x1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1679290480; bh=VdtlSiXnWeVdugWWNsOLFge53ea0gpJj7cWXF45lEso=; h=Cc:Date:From:Reply-To:Subject:To; b=PK+JPw9jQciRTd2HOgjManT0lYKhXPVLSqdlim2jB2Z3fE6u8JrtEiTa7t7eftWvfIB 4xPg5lgdXpbaZGRa3Vg4HODG1oMqYS9nUyPfv63zf/mBLjUuzkAQBjMgwJElGVjT+hB6B lns4cQntg6Gy4mPJ4ZACbWejNkyyRwsOeLI= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1679290482441100005 Content-Type: text/plain; charset="utf-8" Clear PageSize bit(Bit7) for non-leaf entry in PageTableLibSetPnle. This function is used to set non-leaf entry attributes so it should make sure that the PageSize bit of the entry should be 0. Signed-off-by: Dun Tan Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Cc: Gerd Hoffmann --- UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c b/UefiCpu= Pkg/Library/CpuPageTableLib/CpuPageTableMap.c index 1f17d8a6d4..d623b62401 100644 --- a/UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c +++ b/UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c @@ -202,7 +202,8 @@ PageTableLibSetPnle ( Pnle->Bits.Nx =3D Attribute->Bits.Nx; } =20 - Pnle->Bits.Accessed =3D 0; + Pnle->Bits.Accessed =3D 0; + Pnle->Bits.MustBeZero =3D 0; =20 // // Set the attributes (WT, CD, A) to 0. --=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 (#101385): https://edk2.groups.io/g/devel/message/101385 Mute This Topic: https://groups.io/mt/97725700/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-