From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mx.groups.io with SMTP id smtpd.web09.14874.1655033089962669554 for ; Sun, 12 Jun 2022 04:24:51 -0700 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=i8yBe7Hh; spf=pass (domain: intel.com, ip: 192.55.52.120, mailfrom: min.m.xu@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655033089; x=1686569089; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=HjqM+iOAfdU0sua82nFGW4ie5/QV9XmoVjmrrVmNv+U=; b=i8yBe7HhNL5ydI92Jd+jTgAkZt8tSjAMgGu62JpQ4MGE33suG7houjK9 fFu2ejjHkroNlhfHbhKpS1pX1O076OZ4fLnobMgEjzqdCtxDdMpQDqGPm iqyaz4dKN6R0s/PmcjCAQ7ZkkMDDc0XplrBgRhLMiukBaMCXHfNIIEBqM hrKqjhGywJ5VEl0xAnz+bhyh97MFWNa0O8h+PtsVJU2lji6kBdjwjJFJb ngQyhdk9PG9C9r4RzS4ypHJON2mfw/uodyuLmThmbQmt3ox34aAJNaZx4 Ng9A+G04MkK+zfT7lWjr+x0G2TwAchrR5VRmx/PhhcVMCqi24YaTRZ3+J Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10375"; a="276807150" X-IronPort-AV: E=Sophos;i="5.91,294,1647327600"; d="scan'208";a="276807150" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2022 04:24:49 -0700 X-IronPort-AV: E=Sophos;i="5.91,294,1647327600"; d="scan'208";a="639151756" Received: from mxu9-mobl1.ccr.corp.intel.com ([10.255.28.104]) by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jun 2022 04:24:47 -0700 From: "Min Xu" To: devel@edk2.groups.io Cc: Min M Xu , Erdem Aktas , Gerd Hoffmann , James Bottomley , Jiewen Yao , Tom Lendacky Subject: [PATCH 1/2] OvmfPkg: Use PcdOvmfWorkAreaBase instead of PcdSevEsWorkAreaBase Date: Sun, 12 Jun 2022 19:24:33 +0800 Message-Id: <20220612112434.1829-1-min.m.xu@intel.com> X-Mailer: git-send-email 2.29.2.windows.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Min M Xu It is an typo error that HobList pointer should be stored at PcdOvmfWorkAreaBase, not PcdSevEsWorkAreaBase. Cc: Erdem Aktas Cc: Gerd Hoffmann Cc: James Bottomley Cc: Jiewen Yao Cc: Tom Lendacky Signed-off-by: Min Xu --- .../IntelTdx/PrePiHobListPointerLibTdx/PrePiHobListPointer.c | 4 ++-- .../PrePiHobListPointerLibTdx/PrePiHobListPointerLibTdx.inf | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OvmfPkg/IntelTdx/PrePiHobListPointerLibTdx/PrePiHobListPointer.c b/OvmfPkg/IntelTdx/PrePiHobListPointerLibTdx/PrePiHobListPointer.c index 1b41a3983c99..ecd271c0bdff 100644 --- a/OvmfPkg/IntelTdx/PrePiHobListPointerLibTdx/PrePiHobListPointer.c +++ b/OvmfPkg/IntelTdx/PrePiHobListPointerLibTdx/PrePiHobListPointer.c @@ -27,7 +27,7 @@ PrePeiGetHobList ( { TDX_WORK_AREA *TdxWorkArea; - TdxWorkArea = (TDX_WORK_AREA *)(UINTN)FixedPcdGet32 (PcdSevEsWorkAreaBase); + TdxWorkArea = (TDX_WORK_AREA *)(UINTN)FixedPcdGet32 (PcdOvmfWorkAreaBase); ASSERT (TdxWorkArea != NULL); ASSERT (TdxWorkArea->SecTdxWorkArea.HobList != 0); @@ -48,7 +48,7 @@ PrePeiSetHobList ( { TDX_WORK_AREA *TdxWorkArea; - TdxWorkArea = (TDX_WORK_AREA *)(UINTN)FixedPcdGet32 (PcdSevEsWorkAreaBase); + TdxWorkArea = (TDX_WORK_AREA *)(UINTN)FixedPcdGet32 (PcdOvmfWorkAreaBase); ASSERT (TdxWorkArea != NULL); TdxWorkArea->SecTdxWorkArea.HobList = (UINTN)HobList; diff --git a/OvmfPkg/IntelTdx/PrePiHobListPointerLibTdx/PrePiHobListPointerLibTdx.inf b/OvmfPkg/IntelTdx/PrePiHobListPointerLibTdx/PrePiHobListPointerLibTdx.inf index 2667f841cea2..fe7ee23fdc8a 100644 --- a/OvmfPkg/IntelTdx/PrePiHobListPointerLibTdx/PrePiHobListPointerLibTdx.inf +++ b/OvmfPkg/IntelTdx/PrePiHobListPointerLibTdx/PrePiHobListPointerLibTdx.inf @@ -23,7 +23,7 @@ UefiCpuPkg/UefiCpuPkg.dec [Pcd] - gUefiCpuPkgTokenSpaceGuid.PcdSevEsWorkAreaBase + gUefiOvmfPkgTokenSpaceGuid.PcdOvmfWorkAreaBase [LibraryClasses] PcdLib -- 2.29.2.windows.2