From nobody Fri Oct 18 08:37:26 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+101635+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+101635+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1679557286; cv=none; d=zohomail.com; s=zohoarc; b=JJ4WEMqtLPD7NgrfkXKgX5puTeJTg5jg6F90Bpc1LYC/KiGAP/FJiKbfF0EezFDM6ojmLcg5CIDzbTDrz8W+T5sz/+CfSG/NfShcDG3z3jeGnLe0tQ5D3gz9FWLktnUzvaRGvDH3FBA/B28F6+y3OKC5QVYtA/dO7jPj/5jF7kA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1679557286; 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=8n9oflamnDVRj266gkgIx3nbvrNWujryUZxV/d2ACHI=; b=ENElJRkZroY0W+FG761YTugkmH/Ub3OCh2kaEupA9rT0JDsSZf+DzofuwKIWplIfw/8jSIF+Z8KVOpKIDVeX2mlceVkHh5YpCqIJg2x0A8zks4R5+YzkxQKoE0OodaKrc2PoSSYYTtyzZSPQHAJdSGVz8CUZ3XoF79bPYOmRco8= 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+101635+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 1679557286548827.4386018881647; Thu, 23 Mar 2023 00:41:26 -0700 (PDT) Return-Path: X-Received: by 127.0.0.2 with SMTP id V4fsYY1788612xjcdVEAkCfa; Thu, 23 Mar 2023 00:41:26 -0700 X-Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mx.groups.io with SMTP id smtpd.web10.67098.1679557268568440146 for ; Thu, 23 Mar 2023 00:41:25 -0700 X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="425699593" X-IronPort-AV: E=Sophos;i="5.98,283,1673942400"; d="scan'208";a="425699593" X-Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2023 00:41:25 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="684616835" X-IronPort-AV: E=Sophos;i="5.98,283,1673942400"; d="scan'208";a="684616835" X-Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.55.92]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Mar 2023 00:41:23 -0700 From: "duntan" To: devel@edk2.groups.io Cc: Eric Dong , Ray Ni , Rahul Kumar , Gerd Hoffmann Subject: [edk2-devel] [Patch V4 07/21] UefiCpuPkg/MpInitLib: Add code to initialize MapMask Date: Thu, 23 Mar 2023 15:40:43 +0800 Message-Id: <20230323074057.549-8-dun.tan@intel.com> In-Reply-To: <20230323074057.549-1-dun.tan@intel.com> References: <20230323074057.549-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: mF3lqXzLVl4jId4BFGe8oSiux1787277AA= Content-Transfer-Encoding: quoted-printable DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=groups.io; q=dns/txt; s=20140610; t=1679557286; bh=+u7vqbORBjGQoy4B3+02K1CsRbL1XAy7XiMbHdJDcJk=; h=Cc:Date:From:Reply-To:Subject:To; b=uoaIySixvMX0riTj+Ic5xX4hZpDUieJxdYDkoKvvUokj+Z5UYgTOubiJAhW0neR8Wjf iUm0wnXktHJOQz5vjG3NSvTtVEAzkMPbe2ck4EOvQ0BaYf/YmK0piXIfEhXOxFp7BZ0/E UocvAUKhyN5de0+n+bzdahUOiJjAMTuyfG8= X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1679557288279100001 Content-Type: text/plain; charset="utf-8" In function CreatePageTable(), add code to initialize MapMask to MAX_UINT64. When creating new page table or map non-present range to present, all attributes should be provided. Signed-off-by: Dun Tan Cc: Eric Dong Cc: Ray Ni Cc: Rahul Kumar Cc: Gerd Hoffmann Reviewed-by: Ray Ni --- UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c b/UefiCpuPk= g/Library/MpInitLib/X64/CreatePageTable.c index 7cf91ed9c4..f20068152b 100644 --- a/UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c +++ b/UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c @@ -36,10 +36,7 @@ CreatePageTable ( MapAttribute.Uint64 =3D Address; MapAttribute.Bits.Present =3D 1; MapAttribute.Bits.ReadWrite =3D 1; - - MapMask.Bits.PageTableBaseAddress =3D 1; - MapMask.Bits.Present =3D 1; - MapMask.Bits.ReadWrite =3D 1; + MapMask.Uint64 =3D MAX_UINT64; =20 PageTable =3D 0; PageTableBufferSize =3D 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 (#101635): https://edk2.groups.io/g/devel/message/101635 Mute This Topic: https://groups.io/mt/97796381/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-