From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by mx.groups.io with SMTP id smtpd.web11.96113.1679647930408970241 for ; Fri, 24 Mar 2023 01:52:10 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=FXZA0aEu; spf=pass (domain: intel.com, ip: 134.134.136.126, 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=1679647930; x=1711183930; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=71m7UU9Os9XJMCH9kjkwZfyhAiG6BYso1wwxAENEzns=; b=FXZA0aEuJgHrPi9zzWDbvX0WPOu7bcsuJ9OsfE9/K1BI0PCA9u07lOaP JEMF97mmN90pyeJZ4P5q9pzSRkn2gZxpTEs0hcoC9c1PuETPiAys3s/yp QN30d96t29+PApo/ui/csjB/YEANNYcpS9V97GjJAKT+vUh/NjCDBNf/5 xxoRdldOptp9TxXHZB7K6zu5aj96cgXlIO6CPFqHFy1eq4FkoJotThHtu qbwhaBnfnMpnHd/+nhGo3R2PXyvvSA9y35VuLnZjAJAXFqCS/AD4z085h 8lXg0CEC2xKgwklGrRbSWbU1u19C09v2cQCA7rPse+Njk1TnFqIAAPtOm A==; X-IronPort-AV: E=McAfee;i="6600,9927,10658"; a="323603743" X-IronPort-AV: E=Sophos;i="5.98,287,1673942400"; d="scan'208";a="323603743" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2023 01:52:09 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10658"; a="713010783" X-IronPort-AV: E=Sophos;i="5.98,287,1673942400"; d="scan'208";a="713010783" Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.55.92]) by orsmga008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Mar 2023 01:52:09 -0700 From: "duntan" To: devel@edk2.groups.io Subject: [Patch V6 00/22] Fix issues in CpuPageTableLib Date: Fri, 24 Mar 2023 16:51:49 +0800 Message-Id: <20230324085151.1237-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 V6 atch set In 'Fix the non-1:1 mapping issue', use MultU64x32 to avoid IA32 build failure. In 'Fix issue when splitting leaf entry', add more precise comments to explain why IA32_PE_BASE_ADDRESS_MASK_40 is used. Other patches are Reviewed-by Ray. Dun Tan (20): 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/MpInitLib: Add code to initialize MapMask 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: Add LastMapEntry pointer 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/CpuPageTableLib: Add check for page table creation UefiCpuPkg: Combine branch for non-present and leaf ParentEntry UefiCpuPkg/CpuPageTableLib: Enable PAE paging UefiCpuPkg/CpuPageTableLib: Add RandomTest for PAE paging UefiCpuPkg/CpuPageTableLib: Reduce the number of random tests 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 | 44 +++++++++++++++++++++++++------------------- UefiCpuPkg/Library/CpuPageTableLib/CpuPageTable.h | 127 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------- UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c | 317 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------ UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableParse.c | 25 +++++++++++++++++++++---- UefiCpuPkg/Library/CpuPageTableLib/UnitTest/CpuPageTableLibUnitTestHost.c | 225 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------- UefiCpuPkg/Library/CpuPageTableLib/UnitTest/RandomTest.c | 338 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------------------------------------- UefiCpuPkg/Library/CpuPageTableLib/UnitTest/TestHelper.c | 22 +++++++++++++++------- UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c | 11 +++++------ 8 files changed, 782 insertions(+), 327 deletions(-) -- 2.31.1.windows.1