public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
From: "Ni, Ray" <ray.ni@intel.com>
To: Tom Lendacky <thomas.lendacky@amd.com>,
	"devel@edk2.groups.io" <devel@edk2.groups.io>
Cc: "Dong, Eric" <eric.dong@intel.com>,
	"Kumar, Rahul1" <rahul1.kumar@intel.com>,
	Michael Roth <michael.roth@amd.com>,
	"James Bottomley" <jejb@linux.ibm.com>,
	"Xu, Min M" <min.m.xu@intel.com>,
	"Yao, Jiewen" <jiewen.yao@intel.com>,
	"Justen, Jordan L" <jordan.l.justen@intel.com>,
	Ard Biesheuvel <ardb+tianocore@kernel.org>,
	"Aktas, Erdem" <erdemaktas@google.com>,
	Gerd Hoffmann <kraxel@redhat.com>
Subject: Re: [PATCH 3/4] MpInitLib: Put SEV logic in separate file
Date: Mon, 16 May 2022 03:51:05 +0000	[thread overview]
Message-ID: <MWHPR11MB1631188A847E59DFF33DEB0F8CCF9@MWHPR11MB1631.namprd11.prod.outlook.com> (raw)
In-Reply-To: <6951d2ae-2531-3cc5-bda6-73640c61de92@amd.com>

> -----Original Message-----
> From: Tom Lendacky <thomas.lendacky@amd.com>
> Sent: Thursday, May 12, 2022 10:13 PM
> To: Ni, Ray <ray.ni@intel.com>; devel@edk2.groups.io
> Cc: Dong, Eric <eric.dong@intel.com>; Kumar, Rahul1 <rahul1.kumar@intel.com>; Michael Roth <michael.roth@amd.com>;
> James Bottomley <jejb@linux.ibm.com>; Xu, Min M <min.m.xu@intel.com>; Yao, Jiewen <jiewen.yao@intel.com>; Justen,
> Jordan L <jordan.l.justen@intel.com>; Ard Biesheuvel <ardb+tianocore@kernel.org>; Aktas, Erdem <erdemaktas@google.com>;
> Gerd Hoffmann <kraxel@redhat.com>
> Subject: Re: [PATCH 3/4] MpInitLib: Put SEV logic in separate file
> 
> On 5/7/22 10:13, Ray Ni wrote:
> 
> Probably should have a commit message here explaining the reason for the
> changes.
> 
> Overall, this works, but it does seem strange to have the SwitchToRealProc
> procedure in the middle of the RendezvousFunnelProc procedure. Not sure if
> it would be worth just creating a second SEV nasm file (and maybe renaming
> the first one):
> 
>    AmdSevRendevous.nasm
>    AmdSevSwitchToReal.nasm
> 
> and then including the two in different locations.

I would prefer to keep them in one file AmdSev.nasm.


> 
> Then you wouldn't have to change any of the size calculations either.
> 
> If you want to keep the function within the function and eliminate the use
> of SwitchToRealSize, you should probably update the struct in MpLib.h to
> remove SwitchToRealSize and then update the Ia32 and X64 AsmGetAddressMap
> function to no longer set SwitchToRealSize (or just reserve the field so
> that none of the other offsets change and just remove the set in
> AsmGetAddressMap).

You are right. I will post v2 patches to remove the SwitchToRealSize/Offset fields.


  reply	other threads:[~2022-05-16  3:51 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-05-07 15:13 [PATCH 0/4] Refactor MpInitLib Ni, Ray
2022-05-07 15:13 ` [PATCH 1/4] MpInitLib: Allocate code buffer for PEI phase Ni, Ray
2022-05-07 15:13 ` [PATCH 2/4] MpInitLib: remove unneeded global ASM_PFX Ni, Ray
2022-05-07 15:13 ` [PATCH 3/4] MpInitLib: Put SEV logic in separate file Ni, Ray
2022-05-12 14:13   ` Lendacky, Thomas
2022-05-16  3:51     ` Ni, Ray [this message]
2022-05-07 15:13 ` [PATCH 4/4] MpInitLib: Only allocate below 1MB memory for 16bit code Ni, Ray
     [not found] ` <16ECDB685492F55B.14104@groups.io>
2022-05-09 11:54   ` [edk2-devel] [PATCH 3/4] MpInitLib: Put SEV logic in separate file Ni, Ray
2022-05-09 16:35     ` Lendacky, Thomas
2022-05-09 21:39 ` [edk2-devel] [PATCH 0/4] Refactor MpInitLib Lendacky, Thomas
2022-05-09 23:16   ` Ni, Ray
2022-05-10 14:44     ` Lendacky, Thomas
2022-05-10 15:13       ` Lendacky, Thomas
2022-05-12  1:21         ` Ni, Ray

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=MWHPR11MB1631188A847E59DFF33DEB0F8CCF9@MWHPR11MB1631.namprd11.prod.outlook.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