From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mx.groups.io with SMTP id smtpd.web10.47771.1682331987150222378 for ; Mon, 24 Apr 2023 03:26:28 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=gziKoC3C; spf=pass (domain: intel.com, ip: 134.134.136.100, 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=1682331987; x=1713867987; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=45KvjXo5EDOxXzW3M4vJi2iOKg69qrzfudUqIruzfo4=; b=gziKoC3Cc07CNDn/9AEyHoa5tl1KqzyBFe2Y/G5v5IU+m+t3D1W+HpH/ Zh/r1aMPBe56HRHFCyUiO78wgkyBTN7v+cFB/8VgSSuuvTHHyDUez9M6+ jFRVfMSaOBqM3BhxASMzoPb8CZwTXvwnp3K3B7UgA9HrdWQRCd/mQUQHl iucEcqRjSv+tRW4pv7TzQHWrhLabI3dQRgi1tf058G4LSapMukXzXcyJ2 wVUkXRH/iBCuIYqwED6hiUnxmA8pf7Z4EjCnU2nEJ0Q2rlNcIQbccIws4 15peVaO+u/N3SbxV+PrHPmr/AABoGAioJn8/ojanF3IMHSCH1wRwNSXWj g==; X-IronPort-AV: E=McAfee;i="6600,9927,10689"; a="411690372" X-IronPort-AV: E=Sophos;i="5.99,222,1677571200"; d="scan'208";a="411690372" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Apr 2023 03:26:26 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10689"; a="1022654898" X-IronPort-AV: E=Sophos;i="5.99,222,1677571200"; d="scan'208";a="1022654898" 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; 24 Apr 2023 03:26:25 -0700 From: "duntan" To: devel@edk2.groups.io Subject: [Patch V4 0/8] Create page table by CpuPageTableLib in DxeIpl Date: Mon, 24 Apr 2023 18:26:04 +0800 Message-Id: <20230424102606.2834-1-dun.tan@intel.com> X-Mailer: git-send-email 2.31.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In V4 patch set: Comparing to V3, only fix the spelling from 'defination' to 'definition' in the commit message of 'MdePkg: Move CpuPageTableLib definition to MdePkg'. So only resend the two patches which need to be reviewed. 1. A new patch 'MdePkg: Move CpuPageTableLib definition to MdePkg' to move CpuPageTableLib definition from UefiCpuPkg to MdePkg. 2. Patch 'MdeModulePkg/DxeIpl: Create page table by CpuPageTableLib' has been modified to set GHCB page to be mapped as unencrypted for each CPU for AMD SEV feature. Other patches in this patch set have been reviewed. Dun Tan (8): MdePkg: Move CpuPageTableLib definition to MdePkg EmulatorPkg: Add CpuPageTableLib required by DxeIpl in DSC IntelFsp2Pkg: Add CpuPageTableLib required by DxeIpl in DSC MdeModulePkg: Add CpuPageTableLib required by DxeIpl in DSC OvmfPkg: Add CpuPageTableLib required by DxeIpl in DSC file MdeModulePkg/DxeIpl: Create page table by CpuPageTableLib MdeModulePkg/DxeIpl: Remove duplicated code to enable NX MdeModulePkg/DxeIpl: Refinement to the code to set PageTable as RO EmulatorPkg/EmulatorPkg.dsc | 3 ++- IntelFsp2Pkg/Tools/Tests/QemuFspPkg.dsc | 3 ++- MdeModulePkg/Core/DxeIplPeim/DxeIpl.h | 3 ++- MdeModulePkg/Core/DxeIplPeim/DxeIpl.inf | 5 ++++- MdeModulePkg/Core/DxeIplPeim/Ia32/DxeLoadFunc.c | 112 ++++------------------------------------------------------------------------------------------------------------ MdeModulePkg/Core/DxeIplPeim/X64/DxeLoadFunc.c | 5 +++-- MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.c | 720 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ MdeModulePkg/Core/DxeIplPeim/X64/VirtualMemory.h | 182 ++++++++++---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- MdeModulePkg/MdeModulePkg.dsc | 3 ++- {UefiCpuPkg => MdePkg}/Include/Library/CpuPageTableLib.h | 0 MdePkg/MdePkg.dec | 5 ++++- OvmfPkg/AmdSev/AmdSevX64.dsc | 2 +- OvmfPkg/Bhyve/BhyveX64.dsc | 3 ++- OvmfPkg/CloudHv/CloudHvX64.dsc | 2 +- OvmfPkg/Microvm/MicrovmX64.dsc | 2 +- OvmfPkg/OvmfPkgIa32.dsc | 3 ++- OvmfPkg/OvmfPkgIa32X64.dsc | 2 +- OvmfPkg/OvmfPkgX64.dsc | 2 +- OvmfPkg/OvmfXen.dsc | 2 +- UefiCpuPkg/UefiCpuPkg.dec | 3 --- 20 files changed, 211 insertions(+), 851 deletions(-) rename {UefiCpuPkg => MdePkg}/Include/Library/CpuPageTableLib.h (100%) -- 2.31.1.windows.1