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.web09.26058.1652685263921678640 for ; Mon, 16 May 2022 00:14:24 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=Ejqfuetm; spf=pass (domain: intel.com, ip: 134.134.136.24, mailfrom: ray.ni@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1652685263; x=1684221263; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=wamj7bz/fiDg8ycy/E3AfARupsGtMM+sCfQyIlVmZbM=; b=EjqfuetmRNGZUIVpG8sCbDpiJMTPbQ5PhsS5wtzNBbTrJYfDcZWM1X0T iyuTUXM9lvrgRmnpHRU+ydkc3Fmn1FNtPMfjaPKICohToyctDPkT6ixGp 6SigpL9tLtjJUfR7HkZUQMfOo1JwE6qQ+Ur5De3tWkJ61MxgMZSSJDXOl 0my9vRZky8JZ+aeufixmnG/TzsqV66r5+XhZQjGv9ECu4O8NHu55vdrCu tf+Kqw1kR23HL2OTjHr2vDtrnuGaq4cBc9LizBFSqn1CTpq+KCNRwfR5K vBVoI8N95wwXGKw2t5SSlXrvwcdHkWJ3C6cYI7ZYfL0Wn7v0DiG3YhCZf w==; X-IronPort-AV: E=McAfee;i="6400,9594,10348"; a="270451766" X-IronPort-AV: E=Sophos;i="5.91,229,1647327600"; d="scan'208";a="270451766" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2022 00:14:20 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.91,229,1647327600"; d="scan'208";a="555128988" Received: from shwdeopenlab706.ccr.corp.intel.com ([10.239.183.102]) by orsmga002.jf.intel.com with ESMTP; 16 May 2022 00:14:19 -0700 From: "Ni, Ray" To: devel@edk2.groups.io Subject: [PATCH v3 0/5] MpInitLib code refactoring Date: Mon, 16 May 2022 15:14:07 +0800 Message-Id: <20220516071412.359-1-ray.ni@intel.com> X-Mailer: git-send-email 2.35.1.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit v2: Updated 3/5: "Put SEV logic in separate file" patch. Added 5/5: "Move the Above1Mb vector allocation to MpInitLibInitialize" patch. v3: v2 was sent to wrong mailing list "edk2-devel@lists.01.org". v3 is created to send to correct mailing list. All code changes are in https://github.com/niruiyu/edk2/tree/refactormp3. Ray Ni (5): MpInitLib: Allocate code buffer for PEI phase MpInitLib: remove unneeded global ASM_PFX MpInitLib: Put SEV logic in separate file MpInitLib: Only allocate below 1MB memory for 16bit code MpInitLib: Move the Above1Mb vector allocation to MpInitLibInitialize UefiCpuPkg/Library/MpInitLib/AmdSev.c | 6 +- UefiCpuPkg/Library/MpInitLib/DxeMpLib.c | 2 +- .../Library/MpInitLib/Ia32/MpFuncs.nasm | 13 +- UefiCpuPkg/Library/MpInitLib/MpEqu.inc | 6 +- UefiCpuPkg/Library/MpInitLib/MpLib.c | 124 ++++++------- UefiCpuPkg/Library/MpInitLib/MpLib.h | 6 +- UefiCpuPkg/Library/MpInitLib/PeiMpLib.c | 15 +- UefiCpuPkg/Library/MpInitLib/X64/AmdSev.nasm | 148 +++++++++++++++ UefiCpuPkg/Library/MpInitLib/X64/MpFuncs.nasm | 169 +----------------- 9 files changed, 233 insertions(+), 256 deletions(-) -- 2.35.1.windows.2