From mboxrd@z Thu Jan 1 00:00:00 1970 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:08 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=kEx7TmbC; spf=pass (domain: intel.com, ip: 192.55.52.43, 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=1679557268; x=1711093268; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=cZAraZR4Dj7u4H70S2QeJexi2fiGDB008s5SpGsshrI=; b=kEx7TmbC0D0b+XQWukZ+gRPEl4FMt0QpKFPnxn9fSusV+vViSpLXUwFt R3/1l19YMkGhcLMZ6+zJ++SW7ZxuDg9piK1eXYwcXaCRZhEg633vvP19X rv+8gLkt1ny8ou4qamGobs925tnOHbbkJ7gdPLc/D71XOlmZEhwpO3tqb xEYJjG/owhClqUDl2sL8XKzeTvr2NWHQhF0PA28o2v3T8AS6wpnQan4u3 L+Bvd61F5Z0AuFVmkub6MfcgNdziMTF82CdUq2c4/krR7thPRi5E/KUu/ 7doU5WFHxFwQeam3pLwz4ZAGqIf+xkNPqfaV6ijcgxjUxfzncx36VZxl7 A==; X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="425699445" X-IronPort-AV: E=Sophos;i="5.98,283,1673942400"; d="scan'208";a="425699445" 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:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10657"; a="684616790" X-IronPort-AV: E=Sophos;i="5.98,283,1673942400"; d="scan'208";a="684616790" 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:06 -0700 From: "duntan" To: devel@edk2.groups.io Subject: [Patch V4 00/21] Fix issues in CpuPageTableLib Date: Thu, 23 Mar 2023 15:40:36 +0800 Message-Id: <20230323074057.549-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 V4 atch set 1. In the patch "UefiCpuPkg/MpInitLib: Add code to initialize MapMask", add code to set MapMask to MAX_UINT64 to fix the boot failure tested by Gred. 2. Add patches to enable PAE paing in CpuPageTable Lib and add random test for PAE paging 3. Add patch to reduce the number of random test since CI may timeout 4. Modify the patch to fix non-1:1 mapping issue Dun Tan (19): 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: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 | 42 ++++++++++++++++++++++-------------------- UefiCpuPkg/Library/CpuPageTableLib/CpuPageTable.h | 135 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------- UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c | 312 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------------------------- UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableParse.c | 25 +++++++++++++++++++++---- UefiCpuPkg/Library/CpuPageTableLib/UnitTest/CpuPageTableLibUnitTestHost.c | 225 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------- UefiCpuPkg/Library/CpuPageTableLib/UnitTest/RandomTest.c | 323 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++----------------------------------------------------------------------------------------------- UefiCpuPkg/Library/CpuPageTableLib/UnitTest/TestHelper.c | 22 +++++++++++++++------- UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c | 11 +++++------ 8 files changed, 768 insertions(+), 327 deletions(-) -- 2.31.1.windows.1