public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Min Xu" <min.m.xu@intel.com>
To: devel@edk2.groups.io
Cc: Min Xu <min.m.xu@intel.com>, Eric Dong <eric.dong@intel.com>,
	Jiewen Yao <jiewen.yao@intel.com>, Ray Ni <ray.ni@intel.com>,
	Laszlo Ersek <lersek@redhat.com>
Subject: [PATCH 3/6] UefiCpuPkg/ResetVector: Add InitTdx in UefiCpuPkg
Date: Mon, 12 Jul 2021 09:19:39 +0800	[thread overview]
Message-ID: <a29817d3082fede1ecc8aef7993f8cc320dcce88.1626050798.git.min.m.xu@intel.com> (raw)
In-Reply-To: <cover.1626050798.git.min.m.xu@intel.com>

RFC: https://bugzilla.tianocore.org/show_bug.cgi?id=3429

In ResetVector phase some Tdx initialization may be needed, for example,
recording the Tdx flag ('TDXG'), CPU GPA width, etc. It will be called by
the Main32 entry point in Main.asm. InitTdx.asm in UefiCpuPkg/ResetVector
is a placeholder and the actual initialization is done in other Pkg, such
as OvmfPkg.

Cc: Eric Dong <eric.dong@intel.com>
Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: Ray Ni <ray.ni@intel.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Min Xu <min.m.xu@intel.com>
---
 UefiCpuPkg/ResetVector/Vtf0/Ia32/InitTdx.asm | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 UefiCpuPkg/ResetVector/Vtf0/Ia32/InitTdx.asm

diff --git a/UefiCpuPkg/ResetVector/Vtf0/Ia32/InitTdx.asm b/UefiCpuPkg/ResetVector/Vtf0/Ia32/InitTdx.asm
new file mode 100644
index 000000000000..feb917779fbd
--- /dev/null
+++ b/UefiCpuPkg/ResetVector/Vtf0/Ia32/InitTdx.asm
@@ -0,0 +1,15 @@
+;------------------------------------------------------------------------------
+; @file
+;   Tdx Initialization.
+;
+; Copyright (c) 2021, Intel Corporation. All rights reserved.<BR>
+; SPDX-License-Identifier: BSD-2-Clause-Patent
+;
+;------------------------------------------------------------------------------
+
+BITS 32
+
+InitTdx:
+    nop
+doneTdxInit:
+    OneTimeCallRet InitTdx
-- 
2.29.2.windows.2


  parent reply	other threads:[~2021-07-12  1:20 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-12  1:19 [PATCH 0/6] Add Intel TDX support in OvmfPkg/ResetVector Min Xu
2021-07-12  1:19 ` [PATCH 1/6] OvmfPkg: Add Tdx BFV/CFV PCDs and PcdOvmfImageSizeInKb Min Xu
2021-07-12  1:19 ` [PATCH 2/6] OvmfPkg: Add Tdx metadata Min Xu
2021-07-12  1:19 ` Min Xu [this message]
2021-07-12  1:19 ` [PATCH 4/6] UefiCpuPkg/ResetVector: Add ReloadFlat32 in UefiCpuPkg Min Xu
2021-07-12  1:19 ` [PATCH 5/6] UefiCpuPkg/ResetVector: Add Main32 entry point in Main.asm Min Xu
2021-07-12  1:19 ` [PATCH 6/6] OvmfPkg/ResetVector: Update ResetVector to support Tdx 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=a29817d3082fede1ecc8aef7993f8cc320dcce88.1626050798.git.min.m.xu@intel.com \
    --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