From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by mx.groups.io with SMTP id smtpd.web11.7469.1679290461311870555 for ; Sun, 19 Mar 2023 22:34:22 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=P/jIymxH; spf=pass (domain: intel.com, ip: 134.134.136.31, mailfrom: dun.tan@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1679290461; x=1710826461; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=n40E0B432MnyVV428zyNRk9z3Ax7ius0P9VQIqmxCO8=; b=P/jIymxHUn5j0Puo4HJvCE7+pf435S9NncmCVBPbuI+c3sAYWlIAJ/1c vqql3Z3PGB/q4CUlMUBHLQhdRUxdiexqGcg2hw3t5TjNXlmSqVB/1bhHW HjJhvAYtAqczg0pUUDbrqZEFuL7hFVbsJefEAtv6qtpZu/kjLbyQbtcmA 4YtsUgH0nV7jQftLF/7kf+5mWbSAnr3rPjkzaCG473LrJzAYyOYJ/uExu g+PrB3+lVSdG0r2omcdK9ywdjbGxrPJ54ATtNokAJ/m0CKonrOCuoHlfS kaUkHw92hUt2u1ZyWAkR0zmdbPKYsZWdEeVGOBxy637720k3bfH8sadqo Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10654"; a="401155399" X-IronPort-AV: E=Sophos;i="5.98,274,1673942400"; d="scan'208";a="401155399" 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:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10654"; a="770059294" X-IronPort-AV: E=Sophos;i="5.98,274,1673942400"; d="scan'208";a="770059294" 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:19 -0700 From: "duntan" To: devel@edk2.groups.io Subject: [Patch V3 00/18] Fix issues in CpuPageTableLib Date: Mon, 20 Mar 2023 13:33:11 +0800 Message-Id: <20230320053329.410-1-dun.tan@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In the V3 patch set: 1.Modify the V2 patch set based on Ray's comments 2.Remove the patch to enable PAE paging. Will do this in future patches 3.Add patches to combine code branch for non-present and leaf ParentEntry Dun Tan (16): UefiCpuPkg/CpuPageTableLib: Remove unneeded 'if' condition UefiCpuPkg/CpuPageTableLib: Add check for input Length UefiCpuPkg/CpuPageTableLib:Initialize some LocalVariable at beginning UefiCpuPkg/CpuPageTableLib: Fix the non-1:1 mapping issue UefiCpuPkg/CpuPageTableLib:Clear PageSize bit(Bit7) for non-leaf UefiCpuPkg/CpuPageTableLib: Fix issue when splitting leaf entry UefiCpuPkg/CpuPageTableLib:Add check for Mask and Attr UefiCpuPkg/CpuPageTableLib: Add manual test to check Mask and Attr UefiCpuPkg/CpuPageTableLib:Modify RandomBoolean() in RandomTest UefiCpuPkg/CpuPageTableLib:Modify RandomTest to check Mask/Attr UefiCpuPkg/CpuPageTableLib: Enable non-1:1 mapping in random test UefiCpuPkg/CpuPageTableLib: Add OUTPUT IsModified parameter. UefiCpuPkg/CpuPageTableLib: Modify RandomTest to check IsModified UefiCpuPkg/MpInitLib: Add code to initialize MapMask to 0 UefiCpuPkg/CpuPageTableLib: Add check for page table creation UefiCpuPkg: Combine branch for non-present and leaf ParentEntry Zhiguang Liu (2): UefiCpuPkg: Fix IA32 build failure in CpuPageTableLib.inf UefiCpuPkg: Modify UnitTest code since tested API is changed UefiCpuPkg/Include/Library/CpuPageTableLib.h | 42 ++++++++++++++++++++++-------------------- UefiCpuPkg/Library/CpuPageTableLib/CpuPageTable.h | 125 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------- UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c | 242 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------- UefiCpuPkg/Library/CpuPageTableLib/UnitTest/CpuPageTableLibUnitTestHost.c | 223 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------- UefiCpuPkg/Library/CpuPageTableLib/UnitTest/RandomTest.c | 319 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------------------------------------- UefiCpuPkg/Library/CpuPageTableLib/UnitTest/TestHelper.c | 10 +++++++--- UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c | 13 ++++++++----- 7 files changed, 670 insertions(+), 304 deletions(-) -- 2.31.1.windows.1