From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by mx.groups.io with SMTP id smtpd.web10.3463.1678270107601358969 for ; Wed, 08 Mar 2023 02:08:28 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Sq/4EjkS; spf=pass (domain: intel.com, ip: 134.134.136.65, 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=1678270107; x=1709806107; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=KlpSQ6vU59s1csNLs4HrJFOwf4x7relVD0rRqBH32bc=; b=Sq/4EjkSJEkiF15PI3yemFjB6WDTEJ4Qo8Miznpm+So3w/vtrMQBFj/s 05aZ6LYSPg0FJMJIz2mp1vSp6iSniYlqwfD9LTIzh+xRs9FSL2xjuK8Ww YjugwebEfKdmYvmKlLhc/uvNly7UHCkHZHQNwIUvB8AhEQgN2UV9Ao6h/ WC22nox0enyio1J/q5G78ixhlOdxubgLPHwPLXAqK2Lt59sPgre2L9oqf cXPJLLjBf8meN74z28OleNzD3mrBirO8anVcosHJV92nREiAf8gACZzUY nf7qNok8q+qBwX/1RHBwjfsS+XtL7V2O2Bcx/fKFMyMCxUaDnu6aSOca3 w==; X-IronPort-AV: E=McAfee;i="6500,9779,10642"; a="338442529" X-IronPort-AV: E=Sophos;i="5.98,243,1673942400"; d="scan'208";a="338442529" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga103.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2023 02:08:26 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10642"; a="745862437" X-IronPort-AV: E=Sophos;i="5.98,243,1673942400"; d="scan'208";a="745862437" Received: from shwdeopenlab702.ccr.corp.intel.com ([10.239.55.92]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2023 02:08:25 -0800 From: "duntan" To: devel@edk2.groups.io Subject: [Patch V2 00/14] Fix issues in CpuPageTableLib Date: Wed, 8 Mar 2023 18:07:44 +0800 Message-Id: <20230308100758.669-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 V2 patch set 1. Add more commit message about the 'Fix the non-1:1 mapping issue' patch 2. Add patches to enable PAE paing in CpuPageTable Lib and add random test for PAE paging 3. Add patches to add OUTPUT IsModified parameter for PageTableMap() and modify random test for this parameter 4. Add patches to fix IA32 build failure in CpuPageTableLib and mofify corresponding random test code. Dun Tan (12): UefiCpuPkg/CpuPageTableLib: Remove unneeded 'if' condition UefiCpuPkg/CpuPageTableLib: Add check for input Length UefiCpuPkg/CpuPageTableLib: Fix the non-1:1 mapping issue UefiCpuPkg/CpuPageTableLib: Fix issue when splitting leaf entry UefiCpuPkg/CpuPageTebleLib: Check Mask and Attr in PageTableMap UefiCpuPkg/CpuPageTableLib: Add manual test to check Mask and Attr 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: Enable PAE paging UefiCpuPkg/CpuPageTableLib: Add RandomTest for PAE paging 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 | 36 +++++++++++++++++++----------------- UefiCpuPkg/Library/CpuPageTableLib/CpuPageTable.h | 125 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-------------------------------------------------------------- UefiCpuPkg/Library/CpuPageTableLib/CpuPageTableMap.c | 187 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------- UefiCpuPkg/Library/CpuPageTableLib/UnitTest/CpuPageTableLibUnitTestHost.c | 206 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------- UefiCpuPkg/Library/CpuPageTableLib/UnitTest/RandomTest.c | 309 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++---------------------------------------------------------------------------------------------- UefiCpuPkg/Library/CpuPageTableLib/UnitTest/TestHelper.c | 13 ++++++++----- UefiCpuPkg/Library/MpInitLib/X64/CreatePageTable.c | 12 +++++++----- 7 files changed, 610 insertions(+), 278 deletions(-) -- 2.31.1.windows.1