From: "Gerd Hoffmann" <kraxel@redhat.com>
To: Min Xu <min.m.xu@intel.com>
Cc: devel@edk2.groups.io,
Michael D Kinney <michael.d.kinney@intel.com>,
Brijesh Singh <brijesh.singh@amd.com>,
Erdem Aktas <erdemaktas@google.com>,
James Bottomley <jejb@linux.ibm.com>,
Jiewen Yao <jiewen.yao@intel.com>,
Tom Lendacky <thomas.lendacky@amd.com>
Subject: Re: [PATCH V4 04/10] OvmfPkg: Add PeilessStartupLib
Date: Tue, 1 Mar 2022 14:31:06 +0100 [thread overview]
Message-ID: <20220301133106.7zgie2mz5nkw55ds@sirius.home.kraxel.org> (raw)
In-Reply-To: <20220228081631.681-5-min.m.xu@intel.com>
On Mon, Feb 28, 2022 at 04:16:25PM +0800, Min Xu wrote:
> RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429
>
> PeilessStarupLib provides a function (PeilessStartup) which brings
> up both Legacy and Tdx guest from SEC phase to DXE phase. PEI phase
> is skipped so that the attack surfaces are reduced as much as possible.
>
> PeilessStartup() does below tasks:
> 1. Contruct the FW hoblist.
> Since PEI is skipped, we must find a memory region which is the
> largest one below 4GB. Then this memory region will be used as the
> firmware hoblist.
> 2. Initialize the platform.
> 3. Build various Hobs, such as SecFv Hob, DxeFv Hob, Stack Hob, etc.
> 4. At last DXE Core is located / loaded and transfer control to it.
>
> Cc: Michael D Kinney <michael.d.kinney@intel.com>
> Cc: Brijesh Singh <brijesh.singh@amd.com>
> Cc: Erdem Aktas <erdemaktas@google.com>
> Cc: James Bottomley <jejb@linux.ibm.com>
> Cc: Jiewen Yao <jiewen.yao@intel.com>
> Cc: Tom Lendacky <thomas.lendacky@amd.com>
> Cc: Gerd Hoffmann <kraxel@redhat.com>
> Signed-off-by: Min Xu <min.m.xu@intel.com>
> ---
> OvmfPkg/Include/Library/PeilessStartupLib.h | 34 +
> OvmfPkg/IntelTdx/PeilessStartupLib/DxeLoad.c | 218 ++++
> OvmfPkg/IntelTdx/PeilessStartupLib/Hob.c | 130 +++
> .../PeilessStartupLib/PeilessStartup.c | 241 +++++
> .../PeilessStartupInternal.h | 55 ++
> .../PeilessStartupLib/PeilessStartupLib.inf | 86 ++
> .../PeilessStartupLib/X64/PageTables.h | 206 ++++
> .../PeilessStartupLib/X64/VirtualMemory.c | 935 ++++++++++++++++++
> OvmfPkg/OvmfPkg.dec | 4 +
> 9 files changed, 1909 insertions(+)
> create mode 100644 OvmfPkg/Include/Library/PeilessStartupLib.h
> create mode 100644 OvmfPkg/IntelTdx/PeilessStartupLib/DxeLoad.c
Shouldn't this better go to OvmfPkg/Library?
Otherwise
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
take care,
Gerd
next prev parent reply other threads:[~2022-03-01 13:31 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-28 8:16 [PATCH V4 00/10] Introduce TDVF Config-B (basic) in OvmfPkg Min Xu
2022-02-28 8:16 ` [PATCH V4 01/10] OvmfPkg: Add TdxWorkArea definition Min Xu
2022-02-28 8:16 ` [PATCH V4 02/10] OvmfPkg: Add PrePiHobListPointerLibTdx Min Xu
2022-02-28 8:16 ` [PATCH V4 03/10] OvmfPkg: Update EFI_HOB_PLATFORM_INFO with more platform settings Min Xu
2022-03-01 13:26 ` Gerd Hoffmann
2022-03-02 0:42 ` [edk2-devel] " Min Xu
2022-02-28 8:16 ` [PATCH V4 04/10] OvmfPkg: Add PeilessStartupLib Min Xu
2022-03-01 13:31 ` Gerd Hoffmann [this message]
2022-03-02 1:20 ` Min Xu
2022-02-28 8:16 ` [PATCH V4 05/10] OvmfPkg/IntelTdx: Add Sec to bring up both Legacy and Tdx guest Min Xu
2022-02-28 8:16 ` [PATCH V4 06/10] OvmfPkg: Update TdxDxe to set TDX PCDs Min Xu
2022-02-28 8:16 ` [PATCH V4 07/10] OvmfPkg: Update DxeAcpiTimerLib to read HostBridgeDevId in PlatformInfoHob Min Xu
2022-02-28 8:16 ` [PATCH V4 08/10] OvmfPkg/IncompatiblePciDeviceSupportDxe: Ignore OptionRom in Td guest Min Xu
2022-03-01 13:44 ` Gerd Hoffmann
2022-03-02 1:21 ` Min Xu
2022-02-28 8:16 ` [PATCH V4 09/10] MdeModulePkg: Update PciEnumeratorSupport to ignore OptionRom if needed Min Xu
2022-03-18 13:41 ` Ni, Ray
2022-02-28 8:16 ` [PATCH V4 10/10] OvmfPkg: Introduce IntelTdxX64 for TDVF Config-B Min Xu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20220301133106.7zgie2mz5nkw55ds@sirius.home.kraxel.org \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox