From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by mx.groups.io with SMTP id smtpd.web10.26236.1679885340947752027 for ; Sun, 26 Mar 2023 19:49:01 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=mgihois0; spf=pass (domain: intel.com, ip: 134.134.136.24, 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=1679885341; x=1711421341; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=sMDKKncbI0BdMgGvEKoeAe7KdAUd0MyWJBTOIUhi8JM=; b=mgihois0lJkJah+Z1djyQr2UqEe3Gp4d73/4B75Rrf48maAjNfshPQ78 LKRaAAt/tA+jz9Rr5553chSjDJcTA4ZbeiKeXrMWzJVQNgECAqBYPk2P2 fl0HKW9PnpKzMc6/tRoj9RnCzBLgDVUggaS0MuZNuK2y7vaNd9thDQfYu C0DsUv9rGHvMXnJZitikM89FlbTkhJCCZgvd2L6FJCf5TK6OB0AxhH3yC wQKzrhT0ogM890SNtvwsRQmJtJlP9staleVyzFDFVaRtnljhv1wd7VD5e zTbIw09aq9DeElzmz4FiFAOaBtJOpWxkzHJIuhQQpjvpqi+6LNouUA8Br A==; X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="341739354" X-IronPort-AV: E=Sophos;i="5.98,293,1673942400"; d="scan'208";a="341739354" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Mar 2023 19:48:59 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10661"; a="1012930179" X-IronPort-AV: E=Sophos;i="5.98,293,1673942400"; d="scan'208";a="1012930179" 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; 26 Mar 2023 19:48:58 -0700 From: "duntan" To: devel@edk2.groups.io Subject: [Patch V7 00/22] Fix issues in CpuPageTableLib Date: Mon, 27 Mar 2023 10:48:21 +0800 Message-Id: <20230327024823.107-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 V7 atch set In 'Add RandomTest for PAE paging', modify duplicated test case name from 'Random Test Case1' to 'Random Test Case5'. In 'Enable PAE paging', modify the copy-right year of UefiCpuPkg/Library/CpuPageTableLib/CpuPageTable.h. 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 | 129 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------------------------------------------- UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c | 317 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------ UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableParse.c | 27 ++++++++++++++++++++++----- 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, 784 insertions(+), 329 deletions(-) -- 2.31.1.windows.1