From nobody Fri Oct 18 08:38:15 2024 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+101730+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+101730+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1679637642; cv=none; d=zohomail.com; s=zohoarc; b=WIlseng+9EbqWDuQGt0DXjmWwne0dDzGUSX1748kHr3ByxIbPCrcsvWECPssz2bMsIDPax6lB17mBb5sBBMAsZrFkDuGPnVITc3XxKiH9xqYCPB7dRuT7Ob5gxYwzf26eK+v/o1hHrXOGWKQO/X9/c8NnP0u1GYMV00UI4W3K+A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1679637642; 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=L1k2Nzn29+uAzpRE7jzBneopcplKKdddUPdcknRZkEk=; b=ON/Ufpu45oBwtQCo74oaUZ3gUCzdsz5uYmVipn3y2tca69TQXMdxTI0LwyWiovFbQi4OXNfBHUnvBwsevZNxTKtDvGDrJ2LvruvVxtrZySfFS7zyAxqUs7H0lq9wn2/10x8kfzctEapmQdbag3GYnAkTmjLwEdMaLsImvPUkQH0= 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+101730+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 167963764279610.881928043483299; Thu, 23 Mar 2023 23:00:42 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id c6rxYY1788612xbhAY1PxYyU; Thu, 23 Mar 2023 23:00:42 -0700 X-Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by mx.groups.io with SMTP id smtpd.web11.94534.1679637641374533517 for ; Thu, 23 Mar 2023 23:00:41 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10658"; a="320093898" X-IronPort-AV: E=Sophos;i="5.98,286,1673942400"; d="scan'208";a="320093898" X-Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2023 23:00:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10658"; a="1012122054" X-IronPort-AV: E=Sophos;i="5.98,286,1673942400"; d="scan'208";a="1012122054" X-Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.55.92]) by fmsmga005-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2023 23:00:39 -0700 From: "duntan" To: devel@edk2.groups.io Cc: Eric Dong , Ray Ni , Rahul Kumar , Gerd Hoffmann Subject: [edk2-devel] [Patch V5 05/22] UefiCpuPkg/CpuPageTableLib:Clear PageSize bit(Bit7) for non-leaf Date: Fri, 24 Mar 2023 14:00:03 +0800 Message-Id: <20230324060020.940-6-dun.tan@intel.com> In-Reply-To: <20230324060020.940-1-dun.tan@intel.com> References: <20230324060020.940-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: 1orlQrsmt3x6GqCsGUweQECHx1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1679637642; bh=qs3I95ZVceRM/+HhthFex621pXj2/F2Xo2AFQsn2g1c=; h=Cc:Date:From:Reply-To:Subject:To; b=LWJUaBYRD7YGrq/RhlJn4kUhcagW3Oe9zgVi/aiqorAv0FYfAzz6nx0XHgaR6FdJ0De d5qjOzXDUUbxrRCXZRQm+uQvOBvGVD96sP3EH4NSUlTfjusVIZ6eVt1ZBMtuf1dxLFSRq q1ncUVhGfeV+xd/BzkxEpVEnLSLtUQvC7pU= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1679637643831100018 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 Reviewed-by: Ray Ni Cc: Rahul Kumar Tested-by: Gerd Hoffmann Acked-by: 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 6ab2961790..a242710afa 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 (#101730): https://edk2.groups.io/g/devel/message/101730 Mute This Topic: https://groups.io/mt/97818226/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-